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 Jun 21, 2006, at 10:11 AM, Errol Sayre wrote:
I got tired of fixing Finder windows after every time it crashes and built a script to fix the
...
I can not figure out, however, how to script the width setting of the columns themselves. The sidebar width is simply "sidebar width of window..." but there's no listing for column width in the Finder dictionary.
Does anyone have any hints on this subject?

First, get a reference to a window using ...

	set winRef to window of aliasToAFolder

Then, set the column width using ...

	set width of column name column of list view options of winRef to 264

The name of the column in this example is 'name column'. The name of a column in list view always ends with 'column', for example, 'modification date column'. Looks funny, but it's what you need.

_______________________________________________
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
References: 
 >Scripting Finder window column widths (From: Errol Sayre <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.