Re: get current display resolution
Re: get current display resolution
- Subject: Re: get current display resolution
- From: John W Baxter <email@hidden>
- Date: Thu, 19 Jul 2001 11:24:19 -0700
At 11:35 +0100 7/19/2001, Nigel Garvey wrote:
>
Erik Norton wrote on Wed, 18 Jul 2001 18:31:20 -0700 (PDT):
>
>
>went searching for a one-liner to get the current
>
>screen resolution.
>
>
tell application "Finder" to get items 3 thru 4 of (get bounds of
>
desktop's content space)
>
>
... or, with Jon's Commands:
>
>
screen size of item 1 of (screen list)
>
>
Both produce a list result, eg. {800, 600}
Except for Nigel's, above, which hints at multi-screen Macs, the responses
in this thread address Macs with single screens. In multiple screen
situations, Jon's commands produces a list with a representation of each
screen. The bounds of the desktop deal with a rectangle which contains all
screens...but there may well not be any screen in some portions of that
rectangle.
None of this is a problem for a script which will stay on one machine (at
least until the machine grows a new screen)...it needs to be taken into
account in distributed scripts, I think. (Of course, distributed scripts
are the situation in which using a Scripting Addition like Jon's Commands
is the most dicey.)
--John
--
John Baxter email@hidden Port Ludlow, WA, USA