Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

monitor resolution



	"Robert Poland" <email@hidden>  Add to Address
Book  Add Mobile Alert
Subject:	Re: Monitor resolution
Date:	Thu, 31 May 2007 17:13:17 -0600
To:	"Oakley Masten" <email@hidden>
Assuming you are working with Tiger,

On May 31, 2007, at 3:46 PM, Oakley Masten wrote:
Hi All

OK another simple question.
How do I get monitor resolution and screen bounds?

"Robert Poland" email@hidden  Wrote

tell application "System Events" to set {rightLimit,
bottomLimit} to size of scroll area 1 in process
"Finder"

tell application "Finder"
		activate
		if exists Finder window 1 then -- make sure there is
a window to toggle 
			set wdw to Finder window 1
		tell wdw
			set {leftSide, topSide, rightSide, bottomSide} to
bounds

Thanks Robert this is good.  I wish I could make it
work but I can’t.
Yes, I am using Tiger 10.4.9 and ScriptDebugger 4.0.7

It won’t compile

Thanks
Oakley

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.