Skip to content

Instantly share code, notes, and snippets.

@darwin
Created July 10, 2018 15:08
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darwin/bc647b16d1ac8581cc89a76883523ac3 to your computer and use it in GitHub Desktop.
Save darwin/bc647b16d1ac8581cc89a76883523ac3 to your computer and use it in GitHub Desktop.
tell application "System Preferences"
launch
activate
reveal anchor "Privacy_Assistive" of pane id "com.apple.preference.security"
display alert "RESET ACCESSIBILITY APPROVAL LIST" message "This script will reset (clear) the list of applications in the Accessibility section of the Privacy system preference pane." & linefeed & linefeed & "This action requires an administrative password, and cannot be undone." as critical buttons {"Cancel", "Reset"} cancel button "Cancel"
set show all to true
do shell script "tccutil reset Accessibility" with administrator privileges
delay 1
reveal anchor "Privacy_Accessibility" of pane id "com.apple.preference.security"
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment