Created
July 10, 2018 15:08
-
-
Save darwin/bc647b16d1ac8581cc89a76883523ac3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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