• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Closing subfolders in Finder window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Closing subfolders in Finder window (From: "Bill Quillen" <email@hidden>)

  • Prev by Date: Re: Closing subfolders in Finder window
  • Next by Date: Re: Property impermanence
  • Previous by thread: Re: Closing subfolders in Finder window
  • Next by thread: Re: Closing subfolders in Finder window
  • Index(es):
    • Date
    • Thread