I am on most up-to-date macOS Ventura. I work on a bash shells script that may regulate bunch of settings for mac macOS by means of command line.
I see that utilizing osascript is a lot better than previous defaults write no matter as a result of modifications are mirrored instantly and I haven’t got to killall Finder or kilall Dock.
So I wish to change each accent and spotlight to default blue.
This works for spotlight and alter is straight away mirrored:
_task_begin "Set Spotlight color"
osascript -e '
inform software "System Occasions"
inform look preferences
set properties to {spotlight colour:blue}
finish inform
finish inform
' || _task_nok
_task_ok
This does not work for look and alter shouldn’t be mirrored in any respect (however no errors):
_task_begin "Set Accent color"
osascript -e '
inform software "System Occasions"
inform look preferences
set properties to {look:blue}
finish inform
finish inform
' || _task_nok
_task_ok
Nonetheless 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 fallacious?
edit:
Once I name defaults write -g AppleAccentColor -string 4 this modifications accent accurately to blue within the look window however change continues to be not utilized (even after killing Finder).


