Close File
 
Purpose 
Closes the specified FileMaker file.
See also 
Format 
Close File [Current File/”<filename>”]
Options 
 •
Current File closes the file that runs the script step.
 •
Add FileMaker Data Source specifies a FileMaker Pro file to disconnect from.
 •
Add ODBC Data Source specifies an ODBC data source to disconnect from.
 •
Manage Data Sources allows you to modify or remove external data sources you have added. See Editing external FileMaker data sources and Editing ODBC data sources.
Compatibility 
 
Where the script step runs 
Supported 
FileMaker Pro 
Yes 
FileMaker Server scheduled script 
No 
FileMaker Go 
Yes 
Custom Web Publishing 
No 
FileMaker WebDirect 
No 
Runtime solution 
Yes 
Originated in 
FileMaker Pro 6.0 or earlier
Description 
If you do not specify a file, FileMaker Pro stops the currently running script and closes the FileMaker file that the script is running from.
This script step disconnects the specified ODBC data source. This lets you “re-login” to the specified ODBC data source with a different user name and password, without closing the FileMaker file.
Notes
 •
 •
Example 1 
Opens the Invoices database and performs a script, then closes the current database.
Open File ["Invoices"]
Perform Script ["Sort Records" from file: "Invoices"]
Close File [Current File]
Related topics 
Script steps reference (alphabetical list)
Script steps reference (category list)
Working with data sources