• 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: Intel gets bad height and width
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Intel gets bad height and width


  • Subject: Re: Intel gets bad height and width
  • From: kai <email@hidden>
  • Date: Sat, 8 Jul 2006 15:55:25 +0100


On 8 Jul 2006, at 14:19, Robert Poland wrote:

If I run this script;

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


display dialog wd & return & ht as string

I get;
1024
768

The screen is 1680 X 1050 as verified by "display" preference.

This worked with the 1024 X 768 screen on the old iMac.

I'm not convinced that the com.apple.windowserver plist file is the best source for this type of info, Bob.


What does this give you?

--------------
tell (do shell script "/usr/sbin/system_profiler SPDisplaysDataType | grep Resolution") to set {wd, ht} to {word 2 as number, word 4 as number}
--------------


---
kai


_______________________________________________ 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: 
 >Intel gets bad height and width (From: Robert Poland <email@hidden>)

  • Prev by Date: Date manipulation
  • Next by Date: Re: Date manipulation
  • Previous by thread: Intel gets bad height and width
  • Next by thread: Re: Intel gets bad height and width
  • Index(es):
    • Date
    • Thread