Jump to content

Changing the wallpaper on all spaces and screens.

Recommended Posts



I'm trying to create a workflow that would toggle dark mode and change the wallpapers on all my screens and their spaces accordingly.


The workflow looks like this: 



The Apple scripts that run in the end looks like this:


on run
    tell application "System Events" to tell every desktop to set picture to POSIX file "/System/Library/Desktop Pictures/Pro Black.heic"
end run


The problem I'm having is although the wallpapers change on both screens, they don't on their hidden spaces.


I was wondering if anybody found a solution?


I'm running Alfred 5.5 [2257] on MacOS Sonoma 14.5.

Link to comment

Welcome @Simon Bernard,


I looked into it years ago as I was trying to build interesting wallpaper interactions. Long story short, you can’t. There’s no API for that. It’s certainly possible that I missed something back then or that Apple has changed something, but that’s highly unlikely. Sorry to be the bearer of bad news, but on the positive side you won’t have to bang your head incessantly like I did, or at least you can manage expectations if you decide to keep looking.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...