Open File
Purpose 
Opens the specified FileMaker file or allows the user to select a file to open.
Format 
Open File [Open hidden; “<filename>”]
Options 
 •
Open hidden causes FileMaker Pro to open and hide the specified database.
 •
Specify lets you select a FileMaker Pro database or ODBC data source to open. Choose Add FileMaker Data Source or Add ODBC Data Source to locate and select a file. After you select a file, it is added to the Specify Table list. Choose Manage Data Sources to modify or delete a data source you’ve already added to the list.
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 
Partial 
Originated in 
FileMaker Pro 6.0 or earlier
Description 
For ODBC data sources, this script step re-establishes a link to the ODBC data source.
Script steps after Open execute in the FileMaker file that contains the script, not the file opened by the script.
If you don't specify a file, FileMaker Pro displays the Open File dialog box when the Open File script step executes so that the user can specify a file. The Open File dialog box will also be displayed if the file used in the script has been moved, deleted, or renamed.
Notes
 •
 •
 •
 •
Example 1 
Exports records from the current database, opens the Invoices Backup database, and runs the Import Invoices script from the Invoices Backup database.
Export Records [ ]
Open File ["Invoices Backup"]
Perform Script ["Import Invoices" from file: "Invoices Backup"]
Related topics 
Convert File
Script steps reference (alphabetical list)
Script steps reference (category list)
Working with data sources