• 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: Display resolution
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Display resolution


  • Subject: Re: Display resolution
  • From: Gnarlodious <email@hidden>
  • Date: Tue, 08 Mar 2005 21:03:06 -0700

Title: Re: Display resolution
Entity kai uttered this profundity:

>
> On Mon, 7 Mar 2005 21:33:42 -0700, Robert Poland wrote:
>> Is there a way to get current display resolution?
>>
>> tell application "Finder"
>>         set currentResolution to {Display resolutions}
>> end tell
> If you have 'Jon’s Commands.osax' installed, try something like:
> ---------------
> ((screen list)'s item 1)'s screen size
> ---------------
> If you don't have Jon’s Commands yet:
> http://www.seanet.com/~jonpugh/
> ---
> kai
> _______________________________________________

Why not:


set desktopWidth to (word 3 of (do shell script "defaults read /Library/Preferences/com.apple.windowserver | grep -w " & "Width")) as number
set desktopHeight to (word 3 of (do shell script "defaults read /Library/Preferences/com.apple.windowserver | grep -w " & "Height")) as number


-- Gnarlie
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Display resolution (From: kai <email@hidden>)

  • Prev by Date: Re: Display resolution
  • Next by Date: Re: Hiding ScriptingAdditions.osax
  • Previous by thread: Re: Display resolution
  • Next by thread: Re: Display resolution
  • Index(es):
    • Date
    • Thread