Re: get size of available screen fails
Re: get size of available screen fails
- Subject: Re: get size of available screen fails
- From: Martin Orpen <email@hidden>
- Date: Wed, 04 Jan 2006 08:44:11 +0000
- Thread-topic: get size of available screen fails
on 4/1/06 04:40, kai at email@hidden wrote:
> Yeah - things have moved on a bit, and the file structure has
> changed. Best we move along with it, I suppose...
So, how about:
tell application "Automator" --or Daniel's AppleScriptKit in Panther
set foo to call method "mainScreen" of class "NSScreen"
set bar to call method "visibleFrame" of foo
--set bar to call method "frame" of foo
end tell
-->{0.0, 33.0, 1280.0, 832.0}
I've commented the more conventional "frame" in the above because
"visibleFrame" is much more useful if you need to position something on the
screen.
--
Martin Orpen
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden