Script Steps Reference
Table Of Contents
- Contents
- Script steps reference (alphabetical list)
- About script steps
- Control script steps
- Navigation script steps
- Editing script steps
- Fields script steps
- Set Field
- Set Field By Name
- Set Next Serial Value
- Insert Text
- Insert Calculated Result
- Insert From Device
- Insert From Index
- Insert From Last Visited
- Insert From URL
- Insert Current Date
- Insert Current Time
- Insert Current User Name
- Insert Picture
- Insert Audio/Video
- Insert PDF
- Insert File
- Replace Field Contents
- Relookup Field Contents
- Export Field Contents
- Records script steps
- New Record/Request
- Duplicate Record/Request
- Delete Record/Request
- Delete Portal Row
- Delete All Records
- Open Record/Request
- Revert Record/Request
- Commit Records/Requests
- Copy Record/Request
- Copy All Records/Requests
- Import Records
- Export Records
- Save Records As Excel
- Save Records As PDF
- Save Records As Snapshot Link
- Found Sets script steps
- Windows script steps
- Files script steps
- Accounts script steps
- Spelling script steps
- Open Menu Item script steps
- Miscellaneous script steps
- Get Directory
- Show Custom Dialog
- Allow Formatting Bar
- Refresh Object
- Beep
- Speak (OS X)
- Dial Phone
- Install Plug-In File
- Install Menu Set
- Set Web Viewer
- Open URL
- Send Mail
- AVPlayer Play
- AVPlayer Set Playback State
- AVPlayer Set Options
- Refresh Portal
- Send DDE Execute (Windows)
- Perform AppleScript (OS X)
- Execute SQL
- Send Event
- Comment
- Flush Cache to Disk
- Exit Application
- Enable Touch Keyboard
- Glossary
Files script steps
F
ILEMAKER SCRIPT STEPS REFERENCE 188
Close File
Purpose
Closes the specified FileMaker file.
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
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
• If a user moves the specified file, FileMaker Pro might not be able to close the file.
• Close File can’t close external data sources that are referenced in the relationships graph.
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]
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