• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: get current display resolution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: get current display resolution
      • From: Stefaan Degryse <email@hidden>
    • Re: get current display resolution
      • From: Shane Stanley <email@hidden>
  • Prev by Date: Re: get current display resolution
  • Next by Date: Re: get current display resolution
  • Previous by thread: Re: get current display resolution
  • Next by thread: Re: get current display resolution
  • Index(es):
    • Date
    • Thread