Re: Display resolution
Re: Display resolution
- Subject: Re: Display resolution
- From: Martin Orpen <email@hidden>
- Date: Tue, 08 Mar 2005 07:24:57 +0000
on 8/3/05 4:33 am, Robert Poland at email@hidden wrote:
> Is there a way to get current display resolution?
You could cheat by using obj-c calls with Daniel's AppleScriptKit
application:
tell application "AppleScriptKit"
set foo to call method "mainScreen" of class "NSScreen"
set bar to call method "frame" of foo
end tell
-->{ 0.0, 0.0, 1280.0, 854.0}
You can also use "visibleFrame" instead of "frame"
Daniel's empty AppleScriptKit is hopefully still available from here:
<http://www.red-sweater.com/AppleScriptKit.zip>
Regards
--
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