RE: Closing subfolders in Finder window
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.