So, I was goofing around and asked myself "What would happen if I try to hide a modal window?". The script below illustrates (Do not run this script, as it will lock up JMP):
//=====================================================
//Warning. Do not press the "Hide" button!!! It will lock up JMP
//=====================================================
Names Default to Here(1);
New Window("Test", << Modal,
Button Box("Hide", Window("Test") << Show Window(0));
);
Well, that was a dumb idea. I pressed "Hide" and sure enough, the window was hidden. But because it's a modal window and it was still open, only hidden from view, I could not access anything else. Couldn't stop the script. Pressing ESC or CMD + . didn't exit the script (I'm using a Mac). In the end I had to force quit, losing about 2-3hrs of work on another script I had open. Also tried to save my work prior to force quitting (CMD + S), but it would only allow me to save the script that was currently in focus (the script above).
My question: would there have been any other way for me to either force close that modal window, or force stop the script? Asking because, although I've learned my lesson in this case, there's been other times I've done something else equally brilliant that resulted in the my not being able to save my work. Would be nice to know if there's some other solution.
Relevant Details:
JMP Pro 15.2.1
Mac OS Big Sur
Thanks!