DEFINE VARIABLES & READ IN PARAMETERS
1 of the 3 exact text strings below associated with the Gatekeeper features must be used as the variable input value:
"App Store" "App Store and identified developers" "Anywhere"
Input the value by:
hard-coding the value into the script below
If hard-coding the "gatekeeper" variable copy & paste the string between the double quotes
following the = sign, e.g., gatekeeper="App Store"
The Gatekeeper settings are located on the General tab of the Security & Privacy System Preferences Preference Pane. Use this script to set the radio buttons as desired.