• 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 16:05:07 -0800

On 1/5/11, Steve Thompson <email@hidden> wrote:
> On 5 Jan 2011, at 22:19, 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
>
> tell application "Finder"
>	get bounds of window ofdesktop
>		--> {0, 0, 1440, 900}
> end tell
> Result:
> {0, 0, 1440, 900}

For my 27" iMac

tellapplication "Finder"
	get bounds of window of desktop
	{item 3 of result, item 4 of result}
end tell

-> {2560, 1440}

For multiple monitor installations, install the cscreen CLI tool, available
from
<http://hintsforums.macworld.com/attachment.php?attachmentid=1416&d=1156306718>,
and use it to discern and change the settings for numerous monitors.
 _______________________________________________
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: slow shell
  • Next by Date: Copy Picture to Clipboard
  • Previous by thread: Re: slow shell
  • Next by thread: Copy Picture to Clipboard
  • Index(es):
    • Date
    • Thread