Script Steps Reference
Table Of Contents
- Contents
- About script steps
- Script steps reference (alphabetical list)
- 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 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
- Records script steps
- Found Sets script steps
- Windows script steps
- Files script steps
- Accounts script steps
- Spelling script steps
- Open Menu Item script steps
- Miscellaneous script steps
Control script steps
F
ILEMAKER SCRIPT STEPS REFERENCE 25
Compatibility
This script step is also supported in web publishing and in a FileMaker Server scheduled script.
Description
If a variable doesn’t exist, this script step will create one. A variable name has the same naming
restrictions as a field name. For more information, see
About naming fields.
Local and global variables can be created and used in calculations.
• A local variable can only be used in script steps in the currently executing script. The value
in a local variable is cleared when the script exits.
• A global variable can be used in a calculation or script anywhere in a file, for example, other
scripts or file paths. The value of a global variable is not cleared until the file is closed.
• Local and global variables (or even two local variables in different scripts) can have the
same name but they are treated as different variables and can store different values.
Examples
The following example sets a local variable.
Set Variable [$commission; Value:.05]
The following example sets a global variable.
Set Variable [$$commission; Value:.1]
The following example sets a global variable at a specified repetition number.
Set Variable [$$bonus[2]; Value:3 * 4]
Install OnTimer Script
Purpose
Runs a specified script at the specified interval. Installs a single timer per window. After the specified
interval has passed, the next time the application is idle, runs the specified script.
Format
Install OnTimer Script [“<script name>”; Interval: <number>]
Options
Click Specify to set the variable options:
• Specify script is the name of the script you want to run.
• Interval seconds is the value in seconds that the timer waits before running the script.
Compatibility
This script step is:
• not supported in web publishing
• not supported in a FileMaker Server scheduled script