Toggling High Sierra’s “Use Grayscale” accessibility setting with AppleScript
Corrected from apetronix.com for High Sierra:
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"
delay 1
tell scroll area 2 to tell table 1 to tell row 6 to select
click checkbox "Use grayscale"
end tell
end tell
end tell
tell application "System Preferences" to quit
Want to know when I post new content to my blog? It's a simple as registering for free to an RSS aggregator (Feedly, NewsBlur, Inoreader, …) and adding www.ff00aa.com to your feeds (or www.garoo.net if you want to subscribe to all my topics). We don't need newsletters, and we don't need Twitter; RSS still exists.
Legal information: This blog is hosted par OVH, 2 rue Kellermann, 59100 Roubaix, France, www.ovhcloud.com.
Personal data about this blog's readers are not used nor transmitted to third-parties. Comment authors can request their deletion by e-mail.
All contents © the author or quoted under fair use.