Re: get current display resolution
Re: get current display resolution
- Subject: Re: get current display resolution
- From: Bill Cheeseman <email@hidden>
- Date: Thu, 19 Jul 2001 12:20:22 -0400
on 7/18/01 9:31 PM, Erik Norton at email@hidden wrote:
>
went searching for a one-liner to get the current
>
screen resolution.
Use QuickTime Player. The 'dimensions' property of the 'display' class in
QuickTime Player returns the size as a 'point' (a list of horizontal and
vertical values). As a bonus, you can specify which of several monitors you
are interested in, by its integer index, using the 'display' element of
class 'application' supplemented by the 'main' property of class 'display'.
This is available in both the classic Mac OS and Mac OS X.
I believe there is some other Apple software (besides the Finder and Apple
System Profiler) that can do this, but I've forgotten what it is.
--
Bill Cheeseman - email@hidden
Quechee Software, Quechee, Vermont, USA
The AppleScript Sourcebook - www.AppleScriptSourcebook.com
Vermont Recipes - www.stepwise.com/Articles/VermontRecipes