I know all of the basic handlers, i.e. on run, on open, and on reopen. But this handler, on quit, confuses me. My questions are, what is it used for and how is it triggered?
I know all of the basic handlers, i.e. on run , on open ,
Share
on quitis used in scripts that have been saved as a standalone application. The user can quit such a script using its menus. Aquithandler runs when the user quits the script, and can put up a confirmation dialog asking if they are sure they really want to quit, or clean up any temporary files it created, etc. — anything the script needs to do before it ends. When you have finished doing whatever it is you want to do,continue quitto actually allow the script to exit.Often used with an
on idlehandler, as scripts with such a handler can stay open for long periods of time and the user may need some way to exit them.