tell application "System Preferences"
activate
reveal (pane id "com.apple.preference.universalaccess")
end tell
tell application "System Events"
tell process "System Preferences"
tell window "Accessibility"
tell table 1 of scroll area 1
-- Added "delay 1" to work in 10.11 - El Capitan
delay 1
select (row 2)
end tell
click checkbox "Use grayscale"
end tell
end tell
end tell
tell application "System Preferences" to quit
http://apple.stackexchange.com/questions/167967/creating-system-wide-keyboard-shortcut-to-launch-applications
No comments:
Post a Comment