Re: Closing subfolders in Finder window
Re: Closing subfolders in Finder window
- Subject: Re: Closing subfolders in Finder window
- From: "Marc K. Myers" <email@hidden>
- Date: Tue, 18 Dec 2001 14:28:35 -0500
- Organization: [very little]
>
Date: Tue, 18 Dec 2001 12:56:40 +0000
>
Subject: Re: Closing subfolders in Finder window
>
From: Mr Tea <email@hidden>
>
To: AS List <email@hidden>
>
>
This from Bill Quillen - dated 17/12/01 10:38 pm:
>
>
> Does anyone know of a way to use AS to close all of the toggle keys that
>
> spill a folder's contents in a Finder window?
>
>
I'm not sure I understand the question, Bill.
>
>
If it's just closing all the 'open' sub-folders in a given Finder window,
>
perhaps this snippet extracted from the prefab 'close sub-folders' folder
>
action (installed with OS 9) will do what you need.
>
>
tell application "Finder"
>
close every folder of myWindowRef
>
end tell
>
>
...where myWindowRef is the window displaying the subfolders you want to
>
close. There are several ways to specify the window - I won't list them here
>
(feelin' lazy) - but write in again if you need further advice or want to
>
close entire hierarchies of subfolders
I suspect that what he wants to do is unexpand the subfolders shown in a
list view. That's done like this:
tell application "Finder"
set expanded of every folder of (choose folder) to false
end tell
Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074
[12/18/01 2:27:40 PM]