does anyone know if there is a script to "use grayscale"

I have looked through the topics and haven’t found anything and have done excesive searches on the net at large. If any one could tell me if you can even use a script to check that “use grayscale” box in Universal Access that would be a great help.

Model: iMac
AppleScript: 2.1.1
Browser: Firefox 1.5
Operating System: Mac OS X (10.4)

You may have to resort to a bit of GUI scripting here, Nevermore. (This should toggle the grayscale setting each time the script is run):

tell application "System Preferences" to reveal anchor "Seeing_Display" of pane "com.apple.preference.universalaccess"
tell application "System Events" to click checkbox "Use grayscale" of tab group 1 of window 1 of process "System Preferences"
quit application "System Preferences"

Thank you, Kai for your suggest and the coding… I’ll give it a try and let you know how it turns out.

nevermore