daily pastebin goal
78%
SHARE
TWEET

Untitled

a guest Dec 12th, 2017 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tell application "System Events"
  2. tell current desktop
  3. set picture to "/Library/Desktop Pictures/Beach.jpg"
  4. end tell
  5. end tell
  6.    
  7. tell application "System Events"
  8.     set desktopCount to count of desktops
  9.     repeat with desktopNumber from 1 to desktopCount
  10.         tell desktop desktopNumber
  11.             set picture to "/Library/Desktop Pictures/Beach.jpg"
  12.         end tell
  13.     end repeat
  14. end tell
  15.    
  16. tell application "System Events"
  17.     tell every desktop
  18.         set picture to "path/to/picture.png"
  19.     end tell
  20. end tell
  21.    
  22. tell application "System Events" to tell every desktop to set picture to "path/to/picture.png"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top