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 
This script step is also supported in web publishing and in a FileMaker Server scheduled script.
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)