Skip to content

Instantly share code, notes, and snippets.

@jkulesza
Forked from wbolster/toggle-grayscale
Last active August 29, 2015 14:27
Show Gist options
  • Save jkulesza/f7752d05a6c3804cb10e to your computer and use it in GitHub Desktop.
Save jkulesza/f7752d05a6c3804cb10e to your computer and use it in GitHub Desktop.
AppleScript to toggle grayscale display (for Mac OSX 10.10 Yosemite)
tell application "System Preferences"
activate
set current pane to pane "Accessibility"
end tell
tell application "System Events"
tell process "System Preferences"
click checkbox "Use grayscale" of window 1
end tell
end tell
tell application "System Preferences"
quit
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment