Re: Getting screen resolution the Safari way
Re: Getting screen resolution the Safari way
- Subject: Re: Getting screen resolution the Safari way
- From: Philip Aker <email@hidden>
- Date: Thu, 09 Jan 2003 21:37:59 -0800
On Wednesday, January 8, 2003, at 08:28 AM, Mr Tea wrote:
Scripting limitations in OS X have spawned some ingenious but
contorted ways of getting the size of the desktop (eg, Paul Skinner's
handler for digging it out of the windowserver plist file)
I missed Paul's post. Was the solution any shorter than:
set swidth to word 3 of (do shell script "defaults read
/Library/Preferences/com.apple.windowserver | grep -w Width")
set sheight to word 3 of (do shell script "defaults read
/Library/Preferences/com.apple.windowserver | grep -w Height")
{(swidth as number), (sheight as number)}
?
Philip Aker
http://www.aker.ca
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.