Why does this work: (make the desktop a random image in the folder)
tell application "Finder"
set foo to files of (folder "Pictures:Wallpapers" of home) as alias list
set desktop picture to some item of foo
end tell
and this not: (specify a specific file)
tell application "Finder"
set foo to "Flow.jpg" of (folder "Library:Desktop Pictures") as alias
set desktop picture to foo
end tell
I am a complete noob to applescript so please cut me some slack. I am simply trying to create a script that I can use to make all of the background images uniform on a network via remote desktop.
The references you used are not the same. The one in the second script is wrong.It starts with “Library”. What folder are you trying to get pictures from in the second script?