Skip to main content
Firewood:D
Inspiring
Mar 16, 2023 2:45 AM UTC
Answered

How to use the jsfl command to close the currently used document

I have opened several files, and I want to use the jsfl command to close the currently operating file, similar to ctrl+w, but there is no need to prompt to save. I checked the help manual,
Inside there is a fl.closeDocument(fl.documents[0], false);
But the closed file is not the currently operating document,
What I want now is to close the document I'm currently working on without being prompted to save it.
Can jsfl make it possible? I'm too dumb to code, but I need something like this.
can you help me? Thanks

This topic is closed to new replies. Start a new post to keep the conversation going.
kglad
kgladCorrect answer
Community Expert
Mar 16, 2023 2:54 AM UTC

try:

 

fl.closeDocument(fl.getDocumentDOM(), false);

3 replies

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
Mar 16, 2023 2:54 AM UTC

try:

 

fl.closeDocument(fl.getDocumentDOM(), false);

Translate
Firewood:D
Inspiring
Mar 16, 2023 8:14 AM UTC

Thanks! very perfect

Translate
kglad
Community Expert
Community Expert
Mar 16, 2023 2:36 PM UTC

you're welcome.

Translate