terminal – Altering macOS color by means of osascript for “spotlight” works, however not for “look”

on

|

views

and

comments


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

enter image description here

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?

enter image description here

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

Share this
Tags

Must-read

Constructing the Torc Driverless Security Case

At Torc, we’ve structured our security case on three foundational pillars: Engineer It to Be Secure, Function It to Be Secure, and the...

What’s DL+S? Unlocking the Huge Information Required to Develop Autonomous Vans

Breakthroughs in AI for autonomous driving don't occur in isolation. They occur when information, simulation, machine studying, infrastructure, and car testing work as...

Why I can’t wait to get right into a driverless automotive | Self-driving automobiles

Adrian Chiles (Driverless automobiles are taking us on a street to nowhere, 10 September) needs to know who requested for driverless automobiles. I...

Recent articles

More like this

LEAVE A REPLY

Please enter your comment!
Please enter your name here