Created
January 29, 2015 13:11
-
-
Save yumu19/2885a94204c832b5352b to your computer and use it in GitHub Desktop.
Shell Script to Change Wall Paper of Mac
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
#!/bin/bash | |
i=0 | |
j=1 | |
while true | |
do | |
command="/usr/bin/osascript -e 'tell application \"Finder\" to set desktop picture to POSIX file \"/Users/yumu/Desktop/img/img${i}.png\"'" | |
if [ -e /Users/yumu/Desktop/hoge/img${j}.png ]; then | |
echo ${command} | |
eval ${command} | |
i=`expr ${i} + 1` | |
fi | |
j=`expr ${i} + 1` | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment