Help

Table Of Contents
Creating scripts to automate tasks
F
ILEMAKER PRO HELP 428
Running scripts on FileMaker Server
FileMaker Server administrators can create scheduled tasks to run two types of scripts:
system-level scripts (for example, Windows batch files)
FileMaker Pro scripts in databases hosted by FileMaker Server
These scripts can run in sequences.
To see whether a script step is compatible with FileMaker Server:
1. In FileMaker Pro, choose Scripts menu > Manage Scripts.
2. In the Manage Scripts dialog box, double-click a script name or create a script.
3. In the Edit Script window, select Server from the Show Compatibility list.
Script steps that are not supported from a FileMaker Server schedule appear dimmed.
Notes
A FileMaker Server-scheduled script will halt if an unsupported script step is encountered.
To allow a scheduled script to skip an unsupported step, use the
Allow User Abort script
step and select Off.
A scheduled script is run by FileMaker Server whether or not any FileMaker Pro clients
have the files open. Clients will see the effect of the script (for example, if a script running in
FileMaker
Server changes a record, it will update in FileMaker Pro), but FileMaker Pro has
no part in the script execution.
Related topics
Get(DocumentsPathListing) function
Import Records script step
Export Records script step
Importing scripts from other FileMaker files
FileMaker Pro allows you to import scripts from other FileMaker files. You can also copy and paste
scripts between files. See Copying and pasting scripts.
Many scripts refer to files, fields, layouts, records, and other scripts. In addition, some script steps,
such as Set Field, Insert Calculated Result, Replace Field Contents, and so on, may have field
references embedded in calculations. While these references may be valid in the original file, it is
possible that they will be invalid in the file into which they are being imported.
When you import a script, FileMaker Pro attempts to map fields, layouts, tables (including those
used in relationships), and so on based on their names. Fields and layouts are mapped using their
fully qualified names, and these must match exactly or the reference will not be imported. If the
referenced object cannot be found, FileMaker Pro flags it as missing. After importing a script you
should edit the script to make sure that all references are valid and appear as intended.
Important Always review your imported script before performing it for the first time.
To import a script:
1. Open the file into which the script will be imported.
2. Choose Scripts menu > Manage Scripts. Or, choose File menu > Manage > Scripts.