Instantly share code, notes, and snippets.

Embed
What would you like to do?
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