Closing an open folder

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
hrcap
Posts: 138
Joined: Mon Jan 14, 2019 5:20 pm

Closing an open folder

Post by hrcap » Wed Jan 08, 2025 9:30 pm

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10305
Joined: Wed May 06, 2009 2:28 pm

Re: Closing an open folder

Post by dunbarx » Wed Jan 08, 2025 11:02 pm

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

Klaus
Posts: 14177
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Closing an open folder

Post by Klaus » Thu Jan 09, 2025 10:03 am

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.

Post Reply