Skip to main content
Firewood:D
Inspiring
March 16, 2023
Answered

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

  • March 16, 2023
  • 1 reply
  • 465 views

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 has been closed for replies.
Correct answer kglad

try:

 

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

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
March 16, 2023

try:

 

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

Firewood:D
Inspiring
March 16, 2023

Thanks! very perfect

kglad
Community Expert
Community Expert
March 16, 2023

you're welcome.