Re: Intel gets bad height and width
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