Re: get current display resolution
Re: get current display resolution
- Subject: Re: get current display resolution
- From: JJ <email@hidden>
- Date: Thu, 19 Jul 2001 14:26:05 +0200
>
On 19/7/01 11:31 AM +1000, Erik Norton, email@hidden, wrote:
>
>
> went searching for a one-liner to get the current
>
> screen resolution. checked all the usual resources
>
> and found nothing easy.
>
>
Do you want the resolution or the size in pixels? If the latter, you can
>
use:
>
>
tell application "Finder"
>
bounds of desktop
>
end tell
>
>
but not in OS X.
Nor my 9.1
tell application "Finder"
set the_bounds to (bounds of content spaces's last item) -- desktop
set the_resolution to the_bounds's items 3 thru 4
end tell
JJ