NB: None of the responses to Programmatically quitting the FrontEnd or running without one? answers the question asked here.
If one runs FrontEndTokenExecute["FrontEndQuit"]
, Mathematica pops up a dialog about a "running evaluation", etc. This behavior pauses the program's execution indefinitely, which rules out this approach for terminating the front end programmatically.
Is there a way around this?
Acceptable strategies include:
- suppressing the dialog altogether;
- clicking on its OK button programmatically (though I suspect this may be impossible to do from within the front end session itself);
- using some way other than
FrontEndTokenExecute["FrontEndQuit"]
to programmatically terminate the front end.