Re: Desktop Picture Size/Bounds
Re: Desktop Picture Size/Bounds
- Subject: Re: Desktop Picture Size/Bounds
- From: Devon and Cornwall <email@hidden>
- Date: Wed, 14 Mar 2001 18:26:12 -0800
At 9:10 PM -0700 3/13/01, Craig Simons wrote:
>
I want to have the Appearance Control Panel set the desktop picture
>
positioning to "centered" when the picture is smaller than the monitor and
>
"scale" or "fill" otherwise. I'm sure I can find an OSAX for the screen
>
size/bounds, but how/where can I get information on the size/bounds of
>
PICT/JPEG/GIFf desktop pictures (not to mention other formats)?
Use the size of the desktop's "window" to get your screens resolution.
tell application "Finder"
set screenSize to bounds of container window of desktop
end tell
-->{0, 20, 832, 624}, OMM
For getting the dimensions of your images,We suggest Leonard
Rosenthal's port of "ImageMagick_AE"
http://www.lazerware.com
which is designed for this and much more, and comes with some example scripts.
It is* doable in AppleScript only
(but good luck) ; )
Devon and Cornwall
--never wear brown shoes with a blue suit