Script Steps Reference
Table Of Contents
- Chapter 1 Introduction
- Chapter 2 Control script steps
- Chapter 3 Navigation script steps
- Chapter 4 Editing script steps
- Chapter 5 Fields script steps
- Set Field
- Set Next Serial Value
- Insert Text
- Insert Calculated Result
- Insert From Index
- Insert From Last Visited
- Insert Current Date
- Insert Current Time
- Insert Current User Name
- Insert Picture
- Insert QuickTime
- Insert Object (Windows)
- Insert File
- Update Link (Windows)
- Replace Field Contents
- Relookup Field Contents
- Export Field Contents
- Chapter 6 Records script steps
- Chapter 7 Found Sets script steps
- Chapter 8 Windows script steps
- Chapter 9 Files script steps
- Chapter 10 Accounts script steps
- Chapter 11 Spelling script steps
- Chapter 12 Open Menu Item script steps
- Chapter 13 Miscellaneous script steps
- Appendix A Glossary
94 FileMaker Script Steps Reference
For example, a layout in the file Data Entry contains a related field from the file
Companies. When this layout is displayed, FileMaker Pro opens the Companies file
in a hidden state. To open a new window displaying the hidden related file, use a
script such as:
Open File[Open Hidden; "Companies"]
Select Window["Companies"]
To return the file to its original state, perform a Close Window [] script step to close
the open window.
Example
Perform Find [Restore]
Sort Records [Restore]
Select Window [Name: “Sales records”]
Close Window
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).
Web compatibility
This script step is web-compatible.
Description
Closes the currently active window or any other window by name.
Note Closing the last window of a file closes the file and halts execution of the current
script.
Examples
Perform Find [Restore]
Sort Records [Restore]
Pause/Resume Script [Indefinitely]
Close Window [Name: “Sales records”]