Close Window
Purpose 
Closes the currently active window or any other window by name.
Format 
Close Window [Current window or Name: <name of window>; Current file]
Options 
 •
Click Specify to select which window you want FileMaker Pro to close. You can enter literal text or click Specify to generate a name from a calculation.
 •
Select Current file only to restrict matches to the current file (not selecting this option matches all available FileMaker Pro files).
Note  Closing the last window of a file closes the file and halts execution of the current script.
Compatibility 
 
Where the script step runs 
Supported 
FileMaker Pro 
Yes 
FileMaker Server scheduled script 
Yes 
FileMaker Go 
Yes 
Custom Web Publishing 
Yes 
Instant Web Publishing 
Yes 
Runtime solution 
Yes 
Originated in 
FileMaker Pro 6.0 or earlier
Examples 
Perform Find [Restore]
Sort Records [Restore]
Pause/Resume Script [Indefinitely]
Close Window [Name: “Sales records”]
Related topics 
Defining calculation fields
Script steps reference (alphabetical list)
Script steps reference (category list)