C-Command Software Forum

Script to close all open folders?

I sometimes have a lot of folders open in the Source List. Closing them by hand is tedious. Is there a way to close them with an Apple script. The following *doesn’t *work.

tell application "EagleFiler"
	tell library document 1
		close (every library record of root folder whose kind is "Folder")		
	end tell
end tell

Thanks

Steve

This is not currently scriptable. But one option would be to Option-click the triangle of the outermost containing folder (or Records itself).

Thanks, Michael! Option-clicking, then plain clicking (to re-open) is very fast.

Or, if you don’t want to click, you could use:

  1. Option-Command-1 to select Records.
  2. Option-Left Arrow to recursively collapse.
  3. Right Arrow to expand the first level.