OnLastWindowCloseOnLastWindowClose activates after FileMaker Pro exits a mode.FileMaker Pro 12.0
• The script will run even if the file itself remains open, for example if it is referenced by another file with open windows. The closing script will be performed each time the last open window of the specified file is closed.
• If the script executed by the OnLastWindowClose script trigger returns a False value, then the file will not close.