Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Finder window column widths



On 6/21/06 3:10 PM, "Gnarlodious" <email@hidden> wrote:


> set desktopWidth to (word 3 of (do shell script "defaults read
> /Library/Preferences/com.apple.windowserver | grep -w " & "Width")) as
> number
> set desktopHeight to (word 3 of (do shell script "defaults read
> /Library/Preferences/com.apple.windowserver | grep -w " & "Height"))
> as number
> 

Depending on your system version, you might have better results if you
change this part to use the construct submitted by Kai a couple of days ago:

tell (do shell script "/usr/sbin/system_profiler SPDisplaysDataType |  grep
Resolution") to set {wd, ht} to {word 2 as number, word 4 as number}
set screenz to result
set desktopWidth to (item 1 of screenz)
set desktopHeight to (item 2 of screenz)


But I like it. Thanks, Gnarly.

-- 
Laine Lee


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.