1
2
3
4
5
6
7
!#/bin/sh
osascript <<EOD
set myPic to POSIX path of "$1"  
tell application "Finder"
set desktop picture to (POSIX file myPic) as alias
end tell
EOD