Re: Main screen size
Re: Main screen size
- Subject: Re: Main screen size
- From: Richard 23 <email@hidden>
- Date: Wed, 24 Jan 2001 19:37:39 -0800
>
Here comes the next (simple?) question:
Man you sure do ask a lot of questions!
How did you get to be so nosey? 8)
>
How can I get the size (in pixels) of the main screen?
>
I'm using Akua Sweets if that's a help.
I don't bother with 3rd party osaxen where practical.
In this case you can just ask the finder.
Maybe be more authoritative. tell, don't ask.
tell application "Finder" to set theBounds to bounds of the desktop's
window
tell application "Finder" to set theBounds to desktop's window's bounds
tell application "Finder" to set theBounds to bounds of content space of
desktop
One these should work. And so should the other two.
>
(this would be a good addition to the 'Newbies' collection
>
that someone out there should be putting on a web site - would be easier
>
than answering how to trap a 'Cancel' msg from a dialog 3x a day...)
That's a great idea! And who would have a better perspective
than a genuine newbie? Good luck with your site! Let me know
when I can check it out!
>
Newbie gives thanks in advance to 'o-mighty AS scripting gods' out there,
Don't forget to thank those shadowy figures who came up with a way to
turn obscure system level messages (Apple Events) into a human readable,
simpleton accessible scripting language for all! Thanks everybody!
My long winded rant which started during my response to Chris referenced
an SDK document which is available here:
ftp://ftp.apple.com/developer/Development_Kits/AppleScript/Documentation/OS
AX/Scripting Additions Mechanism