• 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: "J.B. Stewart" <email@hidden>
  • Date: Thu, 19 Jul 2001 07:48:27 -0400

On 7/18/01 at 6:31 PM, 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. didn't come across the right
> property obviously. could use ASP to create a
> "devices and volumes" report as text file and parse
> info out of there but don't want to. shouldn't be
> that difficult, should it? couldn't coerce that
> report into a record, either. anyway ... don't care
> what format. list, string, record, whatever. thanx
> for help.
> Get personalized email addresses from Yahoo! Mail
> http://personal.mail.yahoo.com/
> _______________________________________________
> applescript-users mailing list
> email@hidden
> http://www.lists.apple.com/mailman/listinfo/applescript-users


Try -

tell application "Finder" to get bounds of content space 1

--> {0, 20, 1024, 768}

OMM the resolution is set to 1024x768 so list items 3 & 4 of the result contain
what you want.

John


References: 
 >get current display resolution (From: Erik Norton <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