Triggers a script to run each time you close the last window of a database file.
When the script runs
Before the last window of a file is closed.
Modes in which the trigger can be used
OnLastWindowClose activates after FileMaker Pro exits a mode.
You can use the Exit Script script step within the triggered script to return True or False.
Originated in
FileMaker Pro 12.0
Related topics 
Setting up script triggers
Setting script triggers for layouts
Setting script triggers for objects