• 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: Getting screen resolution the Safari way
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Getting screen resolution the Safari way (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: limiting numeric runs
  • Next by Date: Command line text substitution
  • Previous by thread: Re: Getting screen resolution the Safari way
  • Next by thread: Re: Safari again
  • Index(es):
    • Date
    • Thread