Created
August 4, 2014 13:51
-
-
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!)
This file contains hidden or 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" | |
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