close data table without saveIf a JSL script is running ...
When I select 2++ data tables in the Window list and press DEL, I get the dialog:

On the other hand, when I select a single file and try to close it, the save file dialog opens - without the option to say : Don't save.
-> any trick to close a singe data table when a script is running?
Automation and ScriptingRe: close data table without saveHi,
Assuming your tables are dt1 and dt2, to close dt2 without saving in a script, use the command line:
Close (dt2, NoSave);
Let us know if this addresses your question.
Best,
TS
Re: close data table without saveit's not about JSL scripting.
I want to use the GUI to close a data table.
In the background a JSL script is running - and the script changes how JMP reacts on User interaction with the GUI.
If the user selects 2++ data tables and wants to close them ,the standard window is displayed. If the user wants to close a single data table, they fall into the trap: close! -> save? -> close dialog | close! -> save? -> close dialog | close! ...
Re: close data table without saveYou can clear the dirty flag from JSL after changing the table, but then it won't prompt at all when closed. You could add a tool to do that.
I've hit this issue as well. My current project is running off the scheduler with tasks rescheduling themselves multiple times per second. The weird close behavior does not happen. There are no sleeps in the JSL, only in the scheduler. Here I've moved the scheduler from its window to my window:
sDum = Schedule( 0, Empty() ); // dummy scheduler
repDum = sDum << getcontainer; // the parent of the outline that holds the scheduler
sched = Remove From( repDum, 1 ); // steal the scheduler from the window it opens
sched << Close( 0 ) << settitle( "scheduler" );
repDum << closewindow; // and close the unwanted window
...
newwindow("connections", vlistbox( hlistbox(... , sched , ...) , ... ));

The technique for grabbing the scheduler has changed since the last time I used it in News Feed which used <