Is it possible to run a script trigger by closing a window?
Is it possible to run a script trigger by closing a window? I haven't figured out a way, but it would be helpful.
Closing the file: Yes. Closing a window: No.
Best I've come up with is to make a window "modal" by displaying it with a paused, uniterruptible script and then placing a large "cancel" button on the layout that user clicks to close the window. This works for using the new window command to display small floating dialogs with many more layout options than a custom dialog, but this may not help you at all in your case.
Vodka, you just saved my life.
Retrieving data ...