Saturday, November 18, 2017

#1 2012-03-17 12:11:25 pm

TechExpertHD
Member
Registered: 2011-12-11
Posts: 82
Website

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

Offline

 

#2 2012-03-17 11:13:57 pm

chumponimys
Member
Registered: 2011-08-05
Posts: 59

Re: Script To Change Highlight Color

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)

Applescript:

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

Last edited by chumponimys (2012-03-17 11:23:47 pm)

Offline

 

#3 2017-09-22 07:17:00 pm

JMichaelTX
Member
From:: Houston, TX (The Woodlands)
Registered: 2014-07-12
Posts: 139

Re: Script To Change Highlight Color

@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.


iMac-27 Late 2015 Retina 5K Screen (& others)
macOS 10.11.6 (El Capitan)

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)