Re: Can you put a background pict on an applescript ?
Re: Can you put a background pict on an applescript ?
- Subject: Re: Can you put a background pict on an applescript ?
- From: Jon Pugh <email@hidden>
- Date: Wed, 25 Jul 2001 08:20:50 -0700
Here's a script that runs from OSA Menu using the Finder's selection to set the desktop picture to the selected file.
Jon
tell application "Finder"
set f to item 1 of selection as alias
set quitIt to not (exists process "Appearance")
end tell
tell application "Appearance" -- Control Panel
set picture file of monitor 1 to f
if quitIt then quit
end tell