This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |