Skip to content

Instantly share code, notes, and snippets.

@tabascoeye
Created October 12, 2020 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tabascoeye/263d28a93cd99e7d38ca8c88ef396b5a to your computer and use it in GitHub Desktop.
Save tabascoeye/263d28a93cd99e7d38ca8c88ef396b5a to your computer and use it in GitHub Desktop.
AppleScript to toggle "Enable Colour Filters"
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