Re: change the desktop picture(was two questions)
Re: change the desktop picture(was two questions)
- Subject: Re: change the desktop picture(was two questions)
- From: Martin Deering <email@hidden>
- Date: Mon, 12 Feb 2001 02:04:02 +0100
Hi Chumps & Chumpettes,
It is possible to script the 'desktop picture' (at least on OS 9.04)
tell application "Appearance"
launch
set picture file of monitor 1 to the_picture
set picture positioning of monitor 1 to centered
quit
end tell
*warning*
Be aware if you don't trap the code for non-image files, the 'Appearance'
application will try and set the file you give it to the desktop picture.
Yes, that's right, if you give it a PDF or sound or text file to display
it'll do it's best, and spend eternity redrawing your desktop icons. The
only solution is to wait, then open the control panel and reset the desktop
picture twice.
*end of warning*
I've written a droplet to take any image file dropped on it and use it as
the background picture. Ha! I no longer have to open an image editor to see
pictures, I just use the desktop. It's trapped for errors (so it won't
accept an Excel file for displaying on the desktop). I thought it was
overkill to post it in response to the question, but if anyone wants the
readable compiled text just mail me. It doesn't take account of the size of
the image, but it's way cool to just change the desktop image by dropping a
file on a droplet.
M.