Re: Getting screen resolution the Safari way
Re: Getting screen resolution the Safari way
- Subject: Re: Getting screen resolution the Safari way
- From: Paul Skinner <email@hidden>
- Date: Fri, 10 Jan 2003 10:53:40 -0500
On Friday, January 10, 2003, at 12:37 AM, Philip Aker wrote:
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
As a matter of fact it was!...
{word 3 of (do shell script "defaults read
/Library/Preferences/com.apple.windowserver | grep -w Width"), word 3
of (do shell script "defaults read
/Library/Preferences/com.apple.windowserver | grep -w Height")}
: ) Just kidding. IIRC My attempt was made approximately five minutes
after I discovered defaults read. no grep just TIDs, it was slow and
large. But I'm coming along.
--
Paul Skinner
_______________________________________________
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.