Script Steps Reference

Table Of Contents
Miscellaneous script steps
F
ILEMAKER PRO SCRIPT STEPS REFERENCE 268
Perform AppleScript (OS X)
Purpose
Sends AppleScript commands to another application.
Format
Perform AppleScript [“<applescript text>”]
Options
Calculated AppleScript specifies a calculation to use as the AppleScript text.
Native AppleScript is the text of an AppleScript (up to 30000 characters). Indenting of
repeat loops and conditional statements is not supported.
Compatibility
Originated in
FileMaker Pro 6.0 or earlier
Description
You can create a calculation to generate the AppleScript commands to be sent, or you can type the
commands directly into the Native AppleScript text area.
For calculated scripts and scripts stored in FileMaker Pro fields, the AppleScript commands are
compiled each time the script is performed. If you type the script into the Native AppleScript text
area, then FileMaker
Pro compiles the script and detects any scripting or system errors. (The script
is recompiled whenever it's edited.)
Note Because AppleScript is an OS X feature, if you run a script containing a Perform AppleScript
script step on a Windows computer, the script step is ignored. (An error code is generated, which
can be captured with the Get(LastError) function.)
Where the script step runs Supported
FileMaker Pro Yes
FileMaker Server No
FileMaker Go No
Custom Web Publishing No
FileMaker WebDirect No
Runtime solution Yes