UsingMac.com

Mac Tricks and Tips, Wallpapers and Applications for Mac Users

Grayscale Display [AppleScript]

Inside Apple ▸ System Preferences under Universal Access, you can set your display to grayscale mode. But you cannot find any keystrokes to trigger grayscale display.

In my opinion, grayscale display is more important than good for nothing white-on-black display. You will need to make your display grayscale to your needs, such as printing files or designing web that can also be used by color-blind society.

I wrote a simple AppleScript Application and will share it with you. Here is what it looks like:

Download Display Grayscale Application [AppleScript]

So with a single-click, you can have your Mac automatically open System Preferences, go to Universal Access, move to Use grayscale checkbox and toggle it for you. Though the processes are not instantly done like when you use keystrokes, but at least you don't need to open System Preferences by yourself.

Categories: Leopard, Utilities
Tags: AppleScript, Grayscale

Subscribe to RSS Leave a Comment (11)

Related Entries

Some articles taken from our resource base, tightly related to current article, to empower you with more knowledge on tweaking the most out of your Mac.

11 Comments

Tommy

Everything opens up correctly, but nothing happends...it's "Mac OS X 10.5.3" here. any idea?

Wendy

Hi Tommy, the script above is run under certain condition: 
  1. You have your Full Keyboard Access turned on and currently the focus is only set to Text boxes and lists only which can be done under Keyboard Shortcuts (5th section under Keyboard & Mouse).
  2. All F1, F2, etc are used as standard function keys which the behavior can be changed inside Keyboard (1st section under Keyboard & Mouse)

mau mau

An alternative is to hold [fn] key while running the script. 
That way you can have your F1, F2, etc keys active for volume changing and other functions.

Nice script anyway .)

fidel

Hi,

in best case you should add a check routine into your script to check if the needed settings are configured already or not. Otherwise some users might be confused if nothing happens.

This isnt that much more code - but offers lot of help for users.


Best regards
fidel

JJQM

i leave you here the shortcut
comand+option+control+8

Jason

For Snow Leopard 10.6, I had to add one more tab command for it to work. I also removed the control+F7 ( key code 98 using {control down} ) lines because I already had all controls enabled, and it seemed to not work.

@JJQM, this is to remove all color from the display, not to invert it. There is no keyboard shortcut to switch to grayscale.

This is what I have:

tell application "System Preferences"
	activate
	reveal first anchor of pane "com.apple.preference.universalaccess"
	delay 1
	tell application "System Events"
		tell process "System Preferences"
			keystroke tab
			keystroke tab
			keystroke tab
			keystroke tab
			keystroke tab
			keystroke tab
			keystroke tab
			keystroke space
		end tell
	end tell
	quit
end tell

Poko

Information is valuable and interesting. ДиаДЭНС-Космо Thank you posted on the Internet The more a man knows, the more opportunities it has to do correctly. This applies to any problem. Therefore, try to read, learn and see as much as possible.  Работа удаленно на дому Especially because it allows easy Internet access . . .

Televizoare 3d ieftine

Yes, you are right.. grayscale display is more important than good for nothing white-on-black display.
Best regards

Polk

Je suis heureux de faire partie de votre article . . . Не умирать merci pour le partage de cette information précieuse  Activation de l'activité du cerveau est quelque chose de vraiment grand, j'aime l'idée et je vais écrire une sur ce sujet. Болезни печени

jcbphlip

Yes, thank for the detailsTexas cdl test answers||	Alabama cdl test answers||	Alaska cdl test answers||	Arizona cdl test answers|| a million! Have to discover anybody organizing Tea Party. I wants to participate in organizing.

geodeta

For Snow Leopard 10.6, I had to add one more tab command for it to work. I also removed the geodeta kraków  control+F7 ( key code 98 using {control down} ) lines because I already had all controls enabled, and it seemed to not work.

Leave a Comment