11
Jun
08

Use an AppleScript to force a desktop picture change

I have my desktop images set to change every 30 minutes in random order. Sometimes the desktop will display an image that displayed earlier in the day, and I wanted a way to 'advance' the image easily. The following AppleScript will cause the desktop image to change, in whatever order you have set, each time it is run:
property theSwitch : 0if theSwitch = 0 then tell application "System Events" tell current desktop set change interval to 1801.0 end tell end tell set theSwitch to 1else tell application "System Events" tell current desktop set change interval to 1800.0 end tell end tell set theSwitch to 0end if
To maintain your current change interval, modify the change interval lines to reflect your interval, measured in seconds. Thus, for my 30-minute setting, I used 1801 and 1800 seconds. One hour would be 3601 and 3600, etc. For this script to work, you must have both Change Picture and Random Order enabled on the Desktop ...

Similar Posts:

0 Responses to “Use an AppleScript to force a desktop picture change”


  1. No Comments

Leave a Reply




Need Help Now?

Popular Searches

Badge Farm

  • Firefox 2
  • CSSEdit 2
  • Textmate
  • Powered by Redoable 1.0

‹