Been trying to get an AppleScript to work that will switch the display mode to greyscale.
Based this off another script that was a few years old. Apple changed the configuration of the System Preference panel since then which broke the script.
Can't figure out how to get it to navigate into the "Display" menu item inside the Accessibility Panel.
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
delay 1
select (row 4)
end tell
click checkbox "Use grayscale"
end tell
end tell
end tell
tell application "System Preferences" to quit
Any help very much appreciated!