Guest User

Untitled

a guest
Dec 12th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  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"
Add Comment
Please, Sign In to add comment