Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

This question already has an answer here:

Recently, Wolfram informed me that there's no way to have a Print button in a CDF running within a plugin environment since the plugin does not interact with the operating system. If you have a way to solve that, it would be great!

But now more importantly, since there are such significant differences between the 2 environments, including the security sandbox, is there any way to detect programmaticly in which environment the CDF is being displayed, so that one could adjust what is being displayed to the user, and what is not?

Thanks in advance for your help!

share|improve this question

marked as duplicate by rm -rf Mar 13 '13 at 23:24

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

2  
Possible duplicate: mathematica.stackexchange.com/q/14193/5 –  rm -rf Mar 12 '13 at 19:28
    
@rm-rf: you're right, it is. Didn't find it when I search for this info prior to posting. THANK YOU! There's a very thorough answer contained there. –  Gregory Klopper Mar 13 '13 at 23:21
    
@GregoryKlopper You're welcome :) I'll mark this as a duplicate then. –  rm -rf Mar 13 '13 at 23:24

1 Answer 1

up vote 1 down vote accepted

If the question is how to determine if the file is being viewed in the plug-in, then here's how:

CurrentValue["PluginEnabled"]
share|improve this answer
    
This is a good enough answer to get awarded an "answer", but as I recently found out, the full answer is a combination of a few things Dynamic@{$LicenseType, Developer$ProtectedMode, CurrentValue["PluginEnabled"]}` –  Gregory Klopper Mar 13 '13 at 23:23

Not the answer you're looking for? Browse other questions tagged or ask your own question.