Help

Table Of Contents
Script triggers reference
F
ILEMAKER PRO HELP 1186
Result
None.
Originated in
FileMaker Pro 12.0
Notes
Although this is typically the first time you open a file, you can also trigger a script this way when you
open a window for a hidden file previously opened via a script or relationship.
Related topics
Setting up script triggers
Setting script triggers for layouts
Setting script triggers for objects
OnLastWindowClose
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.
Result
You can use the Exit Script script step within the triggered script to return True or False.
True: The event that triggered the script proceeds.
False: The event that triggered the script is canceled.
Originated in
FileMaker Pro 12.0
Notes
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.
Related topics
Setting up script triggers
Setting script triggers for layouts
Setting script triggers for objects