Skip to content

Instantly share code, notes, and snippets.

@masnick
Created April 23, 2015 20:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masnick/d8d694a20b634329cc33 to your computer and use it in GitHub Desktop.
Save masnick/d8d694a20b634329cc33 to your computer and use it in GitHub Desktop.
Rotate your desktop background immediately with this AppleScript
tell application "System Events"
set desktopnames to get display name of every desktop
repeat with currentdesktop in desktopnames
tell (every desktop whose display name is currentdesktop)
set initInterval to get change interval -- get the currrent display interval
set change interval to -1 -- force a change to happen right now
set change interval to initInterval -- change it back to the original display interval
end tell
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment