Re: Quick Finder Question
Re: Quick Finder Question
- Subject: Re: Quick Finder Question
- From: Andrew Oliver <email@hidden>
- Date: Thu, 11 Sep 2003 08:34:29 -0700
On 9/11/03 7:01 AM, "Walter Ian Kaye" <email@hidden> wrote:
>
10.2.6 dictionary says the 'list view options' property of a Finder
>
window is read only. So no, it is not possible to set it via script.
Don't believe everything the Finder dictionary tells you. Despite what it
says, it IS possible to manipulate the column views, adding columns, hiding
columns, and changing their widths:
The following script will change the front window's list settings to order
by reverse chronological based on the modification dates of the items within
it:
tell application "Finder"
set theColumns to list view options of window 1
tell theColumns
set sort column to column modification date column
tell column modification date column
set visible to true
set width to 100
set sort direction to reversed
end tell
end tell
end tell
What I can't see a way of doing is finding the *default* settings and
applying those to an existing window, which is the other thing the original
poster requested. Maybe creating a new folder and copying its settings would
be a suitable hack.
Andrew
:)
>
At 03:51a -0700 09/11/2003, Richard Fairbanks didst inscribe upon an
>
electronic papyrus:
>
>
> Is it possible to set the column widths in a finder window or to
>
> script setting a window to use the global defaults? The class
>
> "column" is listed in the dictionary, but I've not had any luck
>
> getting or setting a value. (I'm running 10.1.5.)
>
>
10.2.6 dictionary says the 'list view options' property of a Finder
>
window is read only. So no, it is not possible to set it via script.
>
Unless you can get the UI scripting to do it. To get the values:
>
>
tell application "Finder"
>
properties of column 1 of list view options of Finder window 1
>
end tell
>
>
>
-boo
>
_______________________________________________
>
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.
_______________________________________________
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.