I have six virtual desktops and want to change a desktop wallpaper for all of them at once. There is no such option when using System Preferences, so I have to change a wallpaper only for one desktop and repeat this six times.
Set the wallpaper for Desktop 1, delete all other desktops, then recreate them. If, like me, you have your additional desktops arranged just how you like them, then the thought of deleting and recreating them just to change the wallpaper would be like recommending that I demolish my house so that I can repaint the walls.
I'm not going to do that.
How to change background on all desktops?
The window will update to reflect the new desktop in focus and I can switch that desktop's image to whatever I want it to be. Repeat for as many desktops as you have. If you have multiple monitors, then each monitor will have it's own Desktop window, named something like "Secondary Desktop". This is a lot easier than closing and reopening the desktop preferences on each desktop, and way easier than deleting and recreating all desktops for me, at least.
Head over to your file now and open it with Terminal.
Set the Desktop Background for all of your open Spaces in Mountain Lion · GitHub
Just open it once, so that it knows which app to default to when you open the file. The background across all desktops will change to the selected image. It runs once and makes whatever change it is meant to make without leaving any permanent traces. This will work on both Lion and Mountain Lion with no glitches whatsoever. Embed What would you like to do? Embed Embed this gist in your website.
Share Copy sharable link for this gist. Learn more about clone URLs.
Download ZIP. Code Revisions 7 Stars 15 Forks 5.
Instructions Open Automator and create a new Service Set "Service receives selected" to "image files" Add a "Run Shell Script" action to the workflow, remove the default script contents, and paste the set-wallpaper. This comment has been minimized. Sign in to view.
Copy link Quote reply.