Skip to content

Instantly share code, notes, and snippets.

@trodemaster
Forked from anonymous/dual desktop pattern sh
Created November 3, 2013 22:17
Show Gist options
  • Save trodemaster/7295518 to your computer and use it in GitHub Desktop.
Save trodemaster/7295518 to your computer and use it in GitHub Desktop.
dtpat1="/images/screen1image.jpg"
dtpat2="/images/screen2image.jpg"
osascript -e "tell application \"System Events\"" \
-e "set theDesktops to a reference to every desktop" \
-e "set picture of item 1 of the theDesktops to (do shell script \"echo $dtpat1\")" \
-e "set picture of item 2 of the theDesktops to (do shell script \"echo $dtpat2\")" \
-e "end tell"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment