Skip to content

Instantly share code, notes, and snippets.

@naotone
Created March 22, 2016 13:45
Show Gist options
  • Save naotone/3751f762626cd4a3ae53 to your computer and use it in GitHub Desktop.
Save naotone/3751f762626cd4a3ae53 to your computer and use it in GitHub Desktop.
set displays to {}
set newimage to "OS X:Library:Desktop Pictures:Beach.jpg" as alias
tell application "System Events"
set displays to a reference to every desktop
repeat with i from 1 to count of displays
set picture of item i of displays to newimage
end repeat
end tell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment