Re: Display resolution
Re: Display resolution
- Subject: Re: Display resolution
- From: Gnarlodious <email@hidden>
- Date: Tue, 08 Mar 2005 21:03:06 -0700
Title: Re: Display resolution
Entity kai uttered this profundity:
>
> On Mon, 7 Mar 2005 21:33:42 -0700, Robert Poland wrote:
>> Is there a way to get current display resolution?
>>
>> tell application "Finder"
>> set currentResolution to {Display resolutions}
>> end tell
> If you have 'Jon’s Commands.osax' installed, try something like:
> ---------------
> ((screen list)'s item 1)'s screen size
> ---------------
> If you don't have Jon’s Commands yet:
> http://www.seanet.com/~jonpugh/
> ---
> kai
> _______________________________________________
Why not:
set desktopWidth to (word 3 of (do shell script "defaults read /Library/Preferences/com.apple.windowserver | grep -w " & "Width")) as number
set desktopHeight to (word 3 of (do shell script "defaults read /Library/Preferences/com.apple.windowserver | grep -w " & "Height")) as number
-- Gnarlie
_______________________________________________
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