| Article: |
AppleScript Primer for Mac OS X | |
| Subject: | Desktop picture? | |
| Date: | 2002-02-04 09:25:44 | |
| From: | yezedi | |
|
Is there a verified way to set a desktop background picture in the Finder under OS X? I tried script recording the actions of going into the Preferences and setting it, but that did not work.
|
||
Showing messages 1 through 3 of 3.
-
Desktop picture?
2004-02-16 08:55:21 jaharmi [Reply | View]
You can fairly easily set the Finder's desktop picture this just so:
tell application "Finder"
set the desktop picture to document file "Tiles Warm Grey.jpg" of folder "Desktop Pictures" of folder "Library" of the startup disk
end tell
I don't know of a way to script setting the background picture for a Finder window, yet, as of Panther.




It's not applescript, it's a cocoa application, but it may either provide what you need straight away (dunno if it's applescriptable) or the source code may enlighten you.