Skip to content

Instantly share code, notes, and snippets.

@kpapiez
Forked from wbolster/toggle-grayscale
Created January 7, 2016 18:21
Show Gist options
  • Save kpapiez/35bbbac2710dfdf8813a to your computer and use it in GitHub Desktop.
Save kpapiez/35bbbac2710dfdf8813a to your computer and use it in GitHub Desktop.
AppleScript to toggle grayscale display (for Mac OSX 10.11 El Capitan)
tell application "System Preferences"
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 Events"
quit
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