Enabling Adobe Flash for Safari

Since Adobe Flash is not enabled by default on macOS machines running Safari, you may need to manually enable it if you want Flash to function properly. In FileWave, this can be accomplished by deploying a bash script to enable the Flash Player.

Step-by-step guide

  1. Download the Fileset below.
  2. Upload the Fileset to your FileWave server and deploy to a handful of test machines. 


The Fileset contains the below script and executes it once on activation. 


#log all to filewave client log

#Written by Avery Thomas

#Modified by Alex Fredlake 1/3/2018

exec 1>>/var/log/fwcld.log

exec 2>>/var/log/fwcld.log

users=$(ls /Users | grep -v ".localized" | grep -v "Shared"| grep -v "Guest" | grep -v ".DS_Store")

for oneUser in $users


echo "Enabling Flash Player (Safari) for user: $oneUser"

sudo -u $oneUser /usr/libexec/PlistBuddy -c "Set :PlugInInfo:com.macromedia.Flash\ Player.plugin:plugInCurrentState true" /Users/$oneUser/Library/Preferences/com.apple.Safari.plist

sudo -u $oneUser /usr/libexec/PlistBuddy -c "Set :ManagedPlugInPolicies:com.macromedia.Flash\ Player.plugin:PlugInFirstVisitPolicy PlugInPolicyAllowWithSecurityRestrictions" /Users/$oneUser/Library/Preferences/com.apple.Safari.plist


exit 0