usr/libexec/plistbuddy -c 'add PlugInInfo: ugin:plugInCurrentState bool true' /Users/abc/Library/Preferences/Īfter installing flash (the post install script is run). usr/libexec/plistbuddy -c 'add ManagedPlugInPolicies: ugin:PlugInFirstVisitPolicy string PlugInPolicyAllowWithSecurityRestrictions' The script is using plistbuddy to edit the file in order to set the below values which are responsible to enable flash.(Tested manually and it works)
I have written a script to run as post install in order to enable flash in safari after installing adobe flash player 24.