Page 1 of 1

Closing an open folder

Posted: Wed Jan 08, 2025 9:30 pm
by hrcap
Hi All

Happy New Year

is there a way to close an open folder on the desktop, something like:

Code: Select all

close folder(t_path_folder)

as a note I am opening a folder using:

Code: Select all

launch document t_path_folder

Any help on this would be appreciated

Re: Closing an open folder

Posted: Wed Jan 08, 2025 11:02 pm
by dunbarx
Hi.

I do not think so. Such a finder-oriented action is not, I think, possible from LC. You can create one, delete one, move one, but not close one.

I could be wrong.

Craig

Re: Closing an open folder

Posted: Thu Jan 09, 2025 10:03 am
by Klaus
This is not possible with LC, you need an AppleScript (Mac) or VBScript (Windows) to do that.
Good news, you can execute these scripts from within LC, see "do as alternateLanguage" in the dictionary.