• 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: slow shell
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: slow shell


  • Subject: Re: slow shell
  • From: John Baltutis <email@hidden>
  • Date: Wed, 5 Jan 2011 15:03:05 -0800

On 1/5/11,  Alex Zavatone <email@hidden> wrote:
>
> return {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")}
>
> Pretty instant if you are only concerned with one monitor.
>
> On Jan 5, 2011, at 4:28 PM, Alex Zavatone wrote:
>
>> Why do you have a tell in there?
>>
>> On Jan 5, 2011, at 4:19 PM, Robert Poland wrote:
>>>
>>> Speaking of slow shell scripts; does anyone have a faster version of this?
>>>
>>> 	tell (do shell script "/usr/sbin/system_profiler SPDisplaysDataType |
>>>grep Resolution") to set {newR, newB} to {word 2 as number, word 4 as
>>>number} -- get screen size for monitor

Except the values in the plist are wrong for the monitor's screen size. It
returns UnmirroredWidth = 1920 and UnmirroredHeight = 1200; whereas Robert's
returns the actual screen size (resolution) of my 27" iMac: 2560 x 1440.
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Prev by Date: Re: variables vrs properties
  • Next by Date: Re: variables vrs properties
  • Previous by thread: Re: slow shell
  • Next by thread: Re: slow shell
  • Index(es):
    • Date
    • Thread