Re: Closing subfolders in Finder window
Re: Closing subfolders in Finder window
- Subject: Re: Closing subfolders in Finder window
- From: "Bob.Kalbaugh" <email@hidden>
- Date: Tue, 18 Dec 2001 10:52:16 -0500
on 12/17/01 5:38 PM, Bill Quillen at email@hidden wrote:
>
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? Thanks in advance.
>
>
Bill Quillen
Here is a rough start.
--
tell application "Finder"
activate -- optional
set opnWndws to windows
repeat with eachWindow in opnWndws
try
set completely expanded of every container of eachWindow to false
on error -- do nothing
end try
end repeat
end tell
--
Note: The try block is there to handle windows that aren't in some form of
list view, ie: name, date modified, etc. Won't work with windows set to view
as icons. Check the Finders dictionary.
HTH.
bob.kalbaugh