Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- tell application "System Events"
- tell application "System Preferences"
- activate
- set current pane to pane id "com.apple.preference.security"
- reveal anchor "General" of pane id "com.apple.preference.security"
- end tell
- try
- click button "Allow" of tab group 1 of window "Security & Privacy" of application process "System Preferences" of application "System Events"
- on error
- display dialog "No \"Allow\" button to click, script does not have access, or preferences pane is locked?" buttons {"OK"}
- end try
- end tell
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement