Skip to content

Instantly share code, notes, and snippets.

@cabo
Created August 4, 2014 13:51
Show Gist options
  • Save cabo/ea701ae751aa53a76aea to your computer and use it in GitHub Desktop.
Save cabo/ea701ae751aa53a76aea to your computer and use it in GitHub Desktop.
Short applescript to toggle grayscale presentation on monitors (thanks, anonymous Better TouchTool user!)
tell application "System Preferences"
activate
set the current pane to pane id "com.apple.preference.universalaccess"
tell application "System Events"
tell process "System Preferences"
tell window "Accessibility"
tell checkbox named "Use grayscale"
click
end tell
end tell
end tell
end tell
quit
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment