I've seen a few discussions in the past on this, but never found an actual script that works.
We have recently put the latest update for Flash player in Self Service. The problem we're seeing is that on some Macs, the plugin will be turned on (checked) in Safari under the plugin-settings, and sometimes it won't be.
I'm thinking that if I can have a script run after the installation of Flash Player to enable the plugin, then that will prevent the hassle of trying to explain to Teachers and Students how to enable it through preferences.
Help please?
Enable Flash Player plugin in Safari with script

Best answer by Chrischi99
I will second the use of a configuration profile. I deleted the com.apple.Safari.plist from a computer with Safari 10, Relaunched it and configured all the plugins to on for all sites, which is what we had set for Safari 9. Then I edit the .plist and stripped out all the bits un-related to the plugins. I found that in addition to the <Key>ManagedPlugInPolicies</Key>, I still needed the <key>PluginInfo</key> for each plugin, though I could delete everything except <key>plugInCurrentState</key> <true/>
So for the several plugins we wanted to have enabled, I have this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ManagedPlugInPolicies</key>
<dict>
<key>com.Google.GoogleEarthPlugin.plugin</key>
<dict>
<key>PlugInFirstVisitPolicy</key>
<string>PlugInPolicyAllowWithSecurityRestrictions</string>
</dict>
<key>com.adobe.acrobat.pdfviewerNPAPI</key>
<dict>
<key>PlugInFirstVisitPolicy</key>
<string>PlugInPolicyAllowWithSecurityRestrictions</string>
</dict>
<key>com.adobe.director.shockwave.pluginshim</key>
<dict>
<key>PlugInFirstVisitPolicy</key>
<string>PlugInPolicyAllowWithSecurityRestrictions</string>
</dict>
<key>com.macromedia.Flash Player.plugin</key>
<dict>
<key>PlugInDisallowPromptBeforeUseDialog</key>
<true/>
<key>PlugInFirstVisitPolicy</key>
<string>PlugInPolicyAllowWithSecurityRestrictions</string>
</dict>
<key>com.microsoft.SilverlightPlugin</key>
<dict>
<key>PlugInDisallowPromptBeforeUseDialog</key>
<true/>
<key>PlugInFirstVisitPolicy</key>
<string>PlugInPolicyAllowWithSecurityRestrictions</string>
</dict>
<key>com.microsoft.sharepoint.browserplugin</key>
<dict>
<key>PlugInFirstVisitPolicy</key>
<string>PlugInPolicyAllowWithSecurityRestrictions</string>
</dict>
<key>com.oracle.java.JavaAppletPlugin</key>
<dict>
<key>PlugInFirstVisitPolicy</key>
<string>PlugInPolicyAllowWithSecurityRestrictions</string>
</dict>
</dict>
<key>PlugInInfo</key>
<dict>
<key>com.Google.GoogleEarthPlugin.plugin</key>
<dict>
<key>plugInCurrentState</key>
<true/>
</dict>
<key>com.adobe.acrobat.pdfviewerNPAPI</key>
<dict>
<key>plugInCurrentState</key>
<true/>
</dict>
<key>com.adobe.director.shockwave.pluginshim</key>
<dict>
<key>plugInCurrentState</key>
<true/>
</dict>
<key>com.macromedia.Flash Player.plugin</key>
<dict>
<key>plugInCurrentState</key>
<true/>
</dict>
<key>com.microsoft.SilverlightPlugin</key>
<dict>
<key>plugInCurrentState</key>
<true/>
</dict>
<key>com.microsoft.sharepoint.browserplugin</key>
<dict>
<key>plugInCurrentState</key>
<true/>
</dict>
<key>com.oracle.java.JavaAppletPlugin</key>
<dict>
<key>plugInCurrentState</key>
<true/>
</dict>
</dict>
</dict>
</plist>
Initial testing is showing this working. I've had some complaints since Safari 10 of "This site says I don't have flash/java installed" Which seems to be how some of the pages react when the plugins are not enabled. I am hoping this configuration profile can solve this.
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.