Script To Change Highlight Color

Hello everyone,

What applescript snippet would I use to change the highlight color in System Preferences? Preferable without opening the application.

Thanks,

TechExpertHD

This should do the job: (You could always just set theColor to an RGB value if you don’t want to include the “choose color” user option)

set theColor to choose color
tell application "System Events"
	tell appearance preferences
		set properties to {highlight color:theColor}
	end tell
end tell

@chumponimys, many thanks for your cool script.

Just wanted to thank you and let everyone know that this script is still working as of 2017-09-22, running macOS 10.11.6 (El Capitan). Can’t say about Sierra or High Sierra.