• 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: "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]


  • Follow-Ups:
    • In a pickle with simple resize script
      • From: Webmaster <email@hidden>
  • Prev by Date: RE: Tex-edit problem !
  • Next by Date: stripping an extra character from a text item
  • Previous by thread: RE: Closing subfolders in Finder window
  • Next by thread: In a pickle with simple resize script
  • Index(es):
    • Date
    • Thread