Re: get current display resolution
Re: get current display resolution
- Subject: Re: get current display resolution
- From: Andy Wylie <email@hidden>
- Date: Fri, 20 Jul 2001 17:00:29 +1200
on 20/7/01 6:24 am, John W Baxter at email@hidden wrote:
>
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
this sweet tucked away in Akua's Draw too...
----------
display setup
-- {{name:".Display_Video_ATI_mach64", bounds:{0, 0, 800, 600}, id:-51,
bit depth:16, monitor is main:true}}
_____________________________ Andy