Re: Closing subfolders in Finder window
Re: Closing subfolders in Finder window
- Subject: Re: Closing subfolders in Finder window
- From: Mr Tea <email@hidden>
- Date: Tue, 18 Dec 2001 12:56:40 +0000
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
Mr Tea
--
"Always remember to warm the pot."