Changing macOS colour by way of osascript for “highlight” works, however not for “appearance”

[ad_1]

– Advertisement –

I’m on the newest macOS Ventura. I work on a bash shells script that may modify bunch of settings for mac macOS by way of command line.

– Advertisement –

I see that utilizing osascript is a lot better than previous defaults write no matter as a result of adjustments are mirrored instantly and I don’t need to killall Finder or kilall Dock.

– Advertisement –

So I wish to change each accent and spotlight to default blue.

This works for spotlight and alter is straight away mirrored:

– Advertisement –

_task_begin “Set Highlight color” osascript -e ‘ inform utility “System Events” inform look preferences set properties to {spotlight colour:blue} finish inform finish inform ‘ || _task_nok _task_ok

This doesn’t work for look and alter isn’t mirrored in any respect (however no errors):

_task_begin “Set Accent colour” osascript -e ‘ inform utility “System Events” inform look preferences set properties to {look:blue} finish inform finish inform ‘ || _task_nok _task_ok

However after I run the next code in Script Editor I see look key with my worth however nonetheless, all the pieces I see chosen in Finder + sidebar icons are pink.

What am I doing flawed?

edit:

When I name defaults write -g AppleAccentShade -string 4 this adjustments accent accurately to blue within the look window however change remains to be not utilized (even after killing Finder).

Source

– Advertisement –

[ad_2]

Source link

Comments are closed.