Applescript to set a wallpaper on all virtual desktops/spaces

Hello everybody,
i just want to share something i came up with after trying many things to set a wallpaper to every of my virtual desktops/spaces... feel free to use and improve it!
This applescript is based on a few solutions i found on the internet...
It's really silly, but all the other things doesn't work for me.
FIRST make sure that AppleScript Editor.app is checked in
System Preferences --> Security & Privacy --> Privacy --> Accessibility
Then start AppleScript Editor and paste the following:
----- snip -----
set myWallpaper to "/path/to/image.jpg"
set myNumberOfSpaces to 5
-- switch to first space
tell application "System Events" to key code 18 using control down
delay 1
tell application "System Events" to set picture of current desktop to myWallpaper
delay 0.5
repeat with theIncrementValue from 2 to myNumberOfSpaces
  -- switch to next space
          tell application "System Events" to key code 124 using control down
  delay 1
          tell application "System Events" to set picture of current desktop to myWallpaper
          delay 0.5
end repeat
----- snip -----
Adjust the two variables to your needs...
e.g. i have 5 virtual desktops/spaces
Then click the Run button and watch it working :-)
Hopefully this will help someone.
I think you can easylie make an osascript or o droplet out of this...
Till now i found no other working shiny easy solution of setting one picture to all my desktops in mavericks.
Improvements are welcome!
woodst0ck

There’s been a couple threads about this, the solution seems to be to install a compositor like xcompmgr or maybe compton (I’m using compton and not seeing the issue).

Similar Messages

  • Virtual Desktop/Space video freeze

    Hi there,
    I am using Lion Server 10.7.1 with the new "virtual desktop/space" feature. Lion Server is installed on a mini (core2duo, 4GB RAM) which is showing eyetv on my tv. From another mac (Lion 10.7.1) I connect to the mini for administration using the new virtual desktop/space feature. I get a blank desktop where I can work very well but...Everytime I do this, the eyetv video and most time after some more seconds also the audio freezes on my tv. This also happens when I use Itunes. After I close the administration connection the video plays fine.
    Any idea or anyone out there without theses problems?
    Thanks,
    Frank.

    Someone in the Lion Server Forum might know?
    Regards,
    Colin R.

  • Hardware accelerated applications show up on all virtual desktops

    Hi,
    i have a weird problem, i recently switched (back) to arch linux after i have tried a couple of other distros on exactly the same hardware.
    Only on arch i have the following Problem:
    When applications use hardware accelerated output (e.g. flash, vlc, steam), and i switch virtual desktops, the hardware accelerated part show up on all desktops (although it seems to react to mouse clicks only on the desktop the application is running)
    For vlc i could fix the problem by setting it to opengl output, for flash i had to disable hardware acceleration (which leads to violently blowing fans while watching youtube vids), did not find any solution for steam yet.
    Thing is: something is wrong here on a general scope.
    I use the native nvidia driver and i actually ran xmonad as window manager and switched to mate as i thought this was a xmonad problem, but turns out this is a general problem in the whole installation.
    Any ideas?

    There’s been a couple threads about this, the solution seems to be to install a compositor like xcompmgr or maybe compton (I’m using compton and not seeing the issue).

  • Fluxbox. different wallpaper on every virtual desktop

    hi! is there any way to achieve this? i have 4 desktops in fluxbox and i wonder if there is any way to set a diferent wallpaper for every desktop
    TNX!

    Ah, I figured it out. Right click on Safri icon in tray, choose options and Click "none" instead of "every desktop". That was well hidden!

  • How can I cancel the "Recreate All Virtual Dekstops" for a pooled collection in 2012 R2?

    I currently have a system single-server installation of VDI, using 2012 R2 Standard as the server, using pooled collections of Windows 8.1.  In general, everything works very well, but I've been searching in vain for ONE command.  When
    I make a change to the master template in Hyper-V, Checkpoint it, then go into the Remote Desktop Services, go the appropriate collection and initiate a "Recreate All Virtual Desktops", how would I cancel that?
    It's happened on more than one occasion, where I make a change or an update to the template, and then push out the 25 new Virtual Desktops, and then the client comes back asking for a "little" change....but I'm stuck pushing it out until
    all 25 desktops have been recreated.  There must be a way to interrupt this process (probably leaving a few VM Desktops in an unstable state...which I don't care too much about as it's a pooled collection), update the template, and push it out again with
    the "Recreate All Virtual Desktops".  I do have the concurrency set so it recreates 5 at a time, but that noticeably impacts the users, and I don't want to just push out all 25 at a pop and interrupt everyone's work.  Any ideas?
    J

    Hi,
    Have you tried Stop-RDVirtualDesktopCollectionJob ?  Something like below:
    Import-Module RemoteDesktop
    Stop-RDVirtualDesktopCollectionJob -CollectionName "PooledCollectionName" -ConnectionBroker "broker.yourdomain.com"
    -TP

  • Automatically create a custom VPN connection and set default wallpaper in a deployment...

    Hey guys,
    I've been hard at work on creating a custom deployment for our company to allow us to start rolling out Windows 7 at the first of next month. I demonstrated it to the brass today and they were blown away. All they asked for was two changes and I admit I'm stumped. Hopefully someone here can help:
    1 - Set Default Wallpaper for *all* users: I've written a script to copy our company wallpaper to "C:\Windows\Web\Wallpaper" during a deployment. Is there any way I can modify that script to set that wallpaper as default for anyone who logs into that computer. Or if there's a non-script way to do this I'm all ears. I just need that wallpaper as default.
    2 - Create a VPN Connection for our company intranet: Right now this is being done manually in the Network and Sharing Center. All they are doing is choosing "Set up a new connection or network" >> "Connect to a workplace" >> "Use my Internet Connection (VPN)" and just entering our VPN server IP Address and giving the connection a name. Surely there has to be a way to automate this with a script or something? Can anyone help?
    3 - BONUS: This is just gravy, but if anyone can tell me how to "silently" or "automatically" disable the "Highlight newly installed programs" checkbox for all users using a script or something, that would be *wonderful*.
    Can anyone help me here?

    1. Go here http://blogs.technet.com/deploymentguys/archive/2008/06/06/useful-script-number-5-adjusting-the-default-user-registry-hive.aspx . There is a script that will set your default wallpaper for you.
    2. Does your company use a VPN client?
    3. This option is set in the Registry. You could create a startup script or add this to your Task Sequence. Create the Dword and set it to 0 to disable highlighting.
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Start_NotifyNewApps
    Rich
    http://deploywindows7.wordpress.com/
    Thanks for responding Rich,
    1. I actually came across that script when I was poking around the Deployment guys forums, but I noticed that it did a lot more than just set the Wallpaper. I was trying to "keep it simple" plus the registry editing sort of made me nervous. I guess I can give it a go and see if it can be made to work for me.
    2. Our company dos not use a VPN client. If you look back at my description of the process in bullet point #2 we are just using the Network and Sharing Center that is built into Windows 7 to create a simple VPN connection. That's why I'm so certain there has to be a way to automate this process. ll we are doing is entering an IP Address and giving the connection a name. Surely I can script that, or is there maybe some way to create the connection on one computer and save it as a file that I can then copy to each machine during my deployment?
    3. Thanks for answering my bonus one too. Please forgive my ignorance because I am new to a lot of this. I assume I can create a "file" with the proper registry settings that can be applied during deployment right? I've seen people crate files that do this and use the .reg extension. Do you know how to make one of these or can you link me to a tutorial that steps me through it?
    You could always edit the script to leave the other parts out.  Thanks for the clarification on the VPN Client, just wanted to make absolutely sure. Let me know how if the process you found works for you.
    For the reg key, you would want to create the key I described, add it to your scripts directory, and then add a Client Build Custom Task in StateRestore to set the key in the registry. You can do this by adding a RunLineCommand to the Task Sequence. Then the command would look like this
    cmd /c regedit /s %deployroot%\scripts\NameOfRegKey.reghttp://deploywindows7.wordpress.com/

  • Kdemod 3.5.10 awesome like virtual desktops..

    Hi, I've been using awesome wm for a while now and wanted a bit of a change so went back to kde 3.5.10 (sorry, I can't stand kde4).
    In Awesome, each monitor ( I have two 22" set up) could run independent virtual desktops. I loved being able to watch a movie full screen and do whatever on the other.
    So...I cannot remember is this feature was somewhere in kde.
    I've googled and looked all over but to no avail. Can anyone help me out here?

    I'm running kde3 on my desktop with 3 independent screens. It's pretty simple to do if you have a seperate graphics card for each monitor. I'm using nvidia cards. I also have a laptop running kde3 with two independent screens (added external monitor) off the one graphics card, but it wasn't as simple to do. It's also a nvidia card.
    If it would help, let me know, and I can post my xorg.conf files for you.

  • Mountain Lion bug:  Switching between virtual desktops not possible when using external screen only.

    I think I have found a bug.  I upgraded to Mountain Lion last week, 2 days after ML became available.  My laptop is a Macbook Pro from November 2011.  I ran Lion before and I did an upgrade on my laptop (not reinstall, but upgrade).
    I have an external HP screen (24 inch) connected using DVI (standard connection). I also have an external Apple keyboard (bluetooth) and the external trackpad (bluetooth). I concider myself as a power user with long experience.  I started using multiple desktops in Snow Leopard, and really liked the "4 finger swipe up" that came in Lion.  By swiping 4 fingers up on the trackpad, I can see all "virtual desktops" on the top of the screen and select or more applications to the different screens.
    This function does still work, but when I put the Macbook pro in "clamshell mode" (meaning the lid is locked and I am ONLY using the external screen), then this does not work.  When I do the gesture (4 finger swipe up), the virtual desktops on top of the screen are not shown. 
    But if I open the Mac and then having 2 active screens, both the internal LCD on the Macbook Pro and the external HP screen, it works again.  It does not matter which screen the "Finder many" is active on.
    Picture below show how it is supposed to work.  And it still works if no external screen is connected or if the external screen connected but the lid on the Mac is still open (not clamshell mode).
    This is how it looks on the external screen when I do the "4 finger swipe up" and the Macbook Pro is in clamshell mode (lid down).  Please also note how the background image is not minimized in the same way as before.
    Have any other experienced the same problem ?  Where do I report this to Apple ?  Any e-mail or WEB pages where I can report bugs ?

    As an update, I tried switching the main display to the MBP. Nothing changed.
    However, I changed the rotation to 90 degrees and everything is back to Normal! Aside from the fact that I'm looking a 24" screen in the vertical position.

  • Set up reverse DNS for virtual mail hosting

    I need a bit of server configuation advice.
    I have a static IP and two public domains on a Snow Leopard server connected using NAT behind a firewall - with the necessary port forwarding to ensure all works. 
    1. abc.com is my primary domain on the server - server.abc.com
    2. I have xyz.com set up as a virtual domain and also as a virtual mail host
    This setup has worked well for a long time but I have found that emails to [email protected] are going missing.  If I check my mx records using one of the web based tools it show an error on the reverse dns for server.xyz.com showing a reverse DNS of server.abc.com.
    So the question - is it possible to have secondary 'virtual' DNS record on the server so reverse DNS works for the virtual mail host xyz.com?  If not how do I handle the reverse DNS problem which i think is causing some external mail server to reject mail due to the inconsistency on the reverse DNS lookup?
    Many thanks for any suggestions

    SMTP requires a DNS A record.
    A DNS A record is also known as a machine record.
    A DNS A record inherently means that forward DNS and reverse DNS will match.
    The forward translation translates the host name to the IP address.
    The reverse translation translates the IP address to host name.
    When the full translation produces the same host name, that's an A record.
    DNS CNAME records are aliases, and are used for virtual hosts.
    CNAME records inherently do not match the reverse DNS translations.
    To get your configuration to work, your server must have an A record.
    That means forward and reverse DNS will match.
    Any of the virtual hosts within your mail server then all use an MX pointing at the A record host.
    If you have your DNS hosted somewhere other than your ISP, then you'll need your ISP to set up a DNS PTR.
    The DNS PTR is the reverse translation; address to name.
    If you have your own DNS services within your network (as would be typical with a privately-addressed NAT'd network), set that up as a virtual host within SMTP.
    Here is some related reading on external (public) DNS, as related to SMTP servers and such.

  • How to use AppleScript to set "character fill color" in Pages 5.2?

    For Pages 5.2 on OSX 10.9.3, what is the correct applescript for changing the "character fill" of text in pages. 
    If you highlight text, you do this via your mouse in the inspector by clicking "style," "advanced option (the gear wheel to the right of bold, italics, and underline), "character fill color (clicking on the multi-color circle, not the dropdown menu), and then choosing a color that comes up in the "colors" dialogue box.
    I've looked all over and cannot find how to use applescript to set the character fill color in pages. 
    In some examples (not directly related) I see "character fill" used. 
    In others, I see "colorfill." 
    Basically, I want to use applescript, embedded in a keyboard maestro macro, to change the background color of the text (not the text color itself) to particular colors. 
    Given the changes and updates to Pages this year, and to applescript, what's the easy way to do this?
    Thanks!
    Chuck

    Pages v5.2 still does not include selection-object, or character background color entries in its AppleScript dictionary, as does Pages ’09. Indirectly, using System Events, you can get the text selection in Pages v5.2, but then you can do nothing to change the selection. No assurances as to if or when Apple will mature the AppleScript dictionary support for Pages v5 series.

  • How to set customized wallpaper using MDT unattended.xml file

    hello
    I need to set own wallpaper  with OSD using MDT.
    I have edited the unattended.xml file  as added below component to it, other customization with answer file worked except not getting set the wallpaper set and wallpaper  image is available at specified location.Please help to resolved this issue.
    <settings pass="oobeSystem">
           <component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
          <Themes>
                    <DesktopBackground>\\MDTSERVER\DeploymentShare$\pics\images.jpeg</DesktopBackground>
                    <ThemeName>\\MDTSERVER\DeploymentShare$\pics\images.jpeg</ThemeName>
                    <ScreenSaver></ScreenSaver>
                </Themes>
            </component>
        </settings> 

    Putting the JAR files in WEB-INF/lib and using the standard URIs in the taglib directives are all that's needed; the container locates the TLDs in the JAR files at startup.
    If this doesn't work, it's a bug in the container. You may want to upgrade to a later version of Tomcat; 4.0.6 is ancient, and may very well be buggy in this area.

  • How do I set the wallpaper for the the first page only

    how do I set the wallpaper for the the first page only.I have my ICE #'s as wallpaper but I only want it on the first page

    When you set a wallaper you are asked where you want to set it. Either Lock Screen or Home Screen or Both.
    If you choose Lock screen it will only appear when you wake up your phone.
    If you set it to Home screen, then it wil be set behind the app icons on all your home screens.
    If you choose both, then it will be on both.
    Not sure what you mean by the " have a photo of my ICE in contacts that I am trying to use????" 
    The Photo should be in the Photos App. how is it in contacts?  is it assigned to a contact?

  • Why cant I set a wallpaper to menu screen?

    Itunes says I have the newest available software(4.2.1) for my iPod touch,
    but I cant set a wallpaper to home screen, or view open apps, or activate "negative" color view. 
    What is this? I have deleted all data on my iPod, and reinstalled software, but its still the same problem...

    I do not believe that. The 2G and 3G iPod look identical on the outside.
    The iPod touch (3rd generation) can be distinguished from iPod touch (2nd generation) by looking at the back of the device. In the text below the engraving, look for the model number. iPod touch (2nd generation) is model A1288, and iPod touch (3rd generation) is model A1318.

  • Ipod Touch 5G... Photos I set as wallpaper keep upsizing.

    Hi all,
    Today, I purchased a new ipod touch 5G (64GB). I saved a couple images (.png, 1136x640) onto it and tried to set them as my wallpaper. Everything looked fine once I did this - at first. Then I noticed all four sides of the wallpapers were getting cut off. When I was on the "move and scale" part, I'd make the image smaller to try and make the entire thing fit, but upon release, it just upsizes it again.
    What's going on? Why aren't my images setting true-to-scale? I'd love a solution because they're appearing a little blurrier, and I'd rather not have to go into photoshop and put borders around each of them, just so I can see the entire image once it's set as wallpaper.
    I'm using the latest OS (7.0.3).
    Thanks in advance.

    Go in through your photos app and 'send' the photo to be wallpaper (tapping the little square with the arrow poking out of it)
    You have a bit more control, but not as much as previous iOS versions. THe devices do seem to default to 'fill the screen', so it zooms in until the screen is full, then you get a little extra to allow for moving the image around.

  • Applescript to set video age-rating?

    Hi all
    Does anyone have/know of a little applescript to set the video age-rating?
    Any help would be appreciated.
    Adam

    I have found that the $10 application 'iDentify', (App store), to be most helpful when setting the extra information that cannot be modified due to lack of settable attributes with an applescript.
    This includes the MPAA ratings information.
    This app quickly adds metadata information about a movie including artwork.
    Nice tool to change video information.  It can also do TV shows if the file names are properly edited.
    You also have the option to review the information gleamed from the database to make sure you got a good hit.
    Once you are satisfied, you tell iDentify to save the changes to the file.
    Itunes will then have good information.   Sometime the genre doesn't get set.
    It's not perfect, but this app gets you a long way down the road to have good tags for your videos.
    I also like iVI video converted that also has some abilities to set the video attributes.
    Here's a tip:
    If iDentify doesn't locate a movie, select the movie, click edit tags.  Then lookup the movie on IMdB site and copy/paste the 'tt' location in that movie's web page address into iDentify's IMDB code field then click on Rescan item.

Maybe you are looking for

  • Configuração de áreas de avaliação para crédito de PIS e COFINS

    Pessoal, boa noite! Estou com um problema aqui no projeto onde estou a respeito da configuração de áreas de avaliação para crédito de PIS e COFINS. De acordo com as definições do cliente, o crédito não será realizado na aquisição e sim na depreciação

  • [SOLVED] Pacman -Syu on a (very) limited bandwidth

    Hi I've been using Arch for about a year, and I'm still pretty new to Linux and Arch. The reason I installed Arch in the first place was because of the how much control you have over your system, since you get to build it up according to your prefere

  • System unable to unlock login keychain

    I had a very unfortunate problem with adware this morning and used Adwaremedic to remove it. The program prompted me to restart after removing the adware. Now when I log in to my account I have two windows -- one tells me the system was unable to unl

  • Flip objext or text in JS

    I can't find a way to flip an object or text horizontally or vertically using javascript. I looked at the transfomation matrix but that looks like it only scales, offsets and rotates an object or text. Can I flip an object or text (horizontally or ve

  • Installation adobe cs3 avec numéro de série adobe cs4

    Bonjour, Nous utilisons dans notre entreprise, deux licences Adobe CS3. Nous avons besoin d'une troisième licence et j'ai donc acheté une nouvelle boite Adobe CS4. Comme je souhaite que tout les gens utilisent la même version (CS3), je voudrais insta