Thursday, October 12, 2023
HomeAppleterminal - Modify "Present on all Areas" wallpaper setting by shell on...

terminal – Modify “Present on all Areas” wallpaper setting by shell on macos Sonoma


In system settings, beneath Wallpaper, there’s a new toggle choice to “Present on all Areas”. I am searching for a method to set this selection through shell in terminal since when a brand new wallpaper is about the change toggles again to false.

wallpaper

I’ve tried diffing defaults earlier than and after toggling the change to see if there may be some setting I’ve entry to there, however no luck. Additionally trying into osascript and I’m able to set the desktop image there, however I have never discovered a method to toggle that setting from osascript.

Edit: this is one method to do it, however it’s lower than best. I might like to have the ability to set it with out launching the applying!

  inform utility "System Occasions"
      inform utility "System Settings"
          activate
      finish inform
      delay 0.5
      inform course of "System Settings"
          delay 0.5
          click on menu merchandise "Wallpaper" of menu "View" of menu bar 1
          delay 0.5
          click on checkbox "Present on all Areas" of group 2 of scroll space 1 of group 1 of group 2 of splitter group 1 of group 1 of window "Wallpaper"
      finish inform
      delay 0.5
      inform utility "System Settings"
          stop
      finish inform
  finish inform



Supply hyperlink

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments