Skip to content

Instantly share code, notes, and snippets.

View trodemaster's full-sized avatar
💭
Pushing buttons

Blake Garner trodemaster

💭
Pushing buttons
View GitHub Profile
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"