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

Nvidia CEO reveals new ‘reasoning’ AI tech for self-driving vehicles | Nvidia

The billionaire boss of the chipmaker Nvidia, Jensen Huang, has unveiled new AI know-how that he says will assist self-driving vehicles assume like...

Tesla publishes analyst forecasts suggesting gross sales set to fall | Tesla

Tesla has taken the weird step of publishing gross sales forecasts that recommend 2025 deliveries might be decrease than anticipated and future years’...

5 tech tendencies we’ll be watching in 2026 | Expertise

Hi there, and welcome to TechScape. I’m your host, Blake Montgomery, wishing you a cheerful New Yr’s Eve full of cheer, champagne and...

Recent articles

More like this

LEAVE A REPLY

Please enter your comment!
Please enter your name here