Created
October 12, 2020 15:33
-
-
Save tabascoeye/263d28a93cd99e7d38ca8c88ef396b5a to your computer and use it in GitHub Desktop.
AppleScript to toggle "Enable Colour Filters"
This file contains 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" | |
if it is running then | |
quit | |
delay 0.2 | |
end if | |
end tell | |
tell application "System Preferences" to reveal anchor "Seeing_ColorFilters" of pane id "com.apple.preference.universalaccess" | |
tell application "System Events" | |
tell process "System Preferences" | |
click checkbox "Enable Colour Filters" of tab group 1 of group 1 of window "Accessibility" | |
end tell | |
end tell | |
tell application "System Preferences" to quit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment