• 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: Joe Kelly <email@hidden>
  • Date: Tue, 18 Dec 2001 10:56:11 -0800

What you would like to do is close all the "disclosure triangles" in a given
window or folder, right?

This example takes the path to a folder, but you could adapt it to take a
window and extract the folder from the window etc.

tell application "Finder"
repeat with i in folders of item theFolderPathName
if (expanded of i) then
set expanded of i to false
end if
end repeat
end tell

Hope that helps,

joe



> -----Original Message-----
> From: Bill Quillen [mailto:email@hidden]
> Sent: Monday, December 17, 2001 2:38 PM
> To: Applescript Users List
> Subject: Closing subfolders in Finder window
>
>
> 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
> _______________________________________________
> applescript-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/applescript-users
> Do not post admin requests to the list. They will be ignored.


  • Prev by Date: Re: COPY TO a list vs. SET TO a list
  • Next by Date: RE: Tex-edit problem !
  • Previous by thread: Re: Closing subfolders in Finder window
  • Next by thread: Re: Closing subfolders in Finder window
  • Index(es):
    • Date
    • Thread