Script Steps Reference

Table Of Contents
134 FileMaker Script Steps Reference
Example
The following script opens a URL in Internet Explorer. (Internet Explorer must be open
when this step executes.)
Send DDE Execute [Service Name: "iexplore"; Topic: "WWW_OpenURL";
Commands: "www.filemaker.com"]
Perform AppleScript (Mac OS)
Format
Perform AppleScript [“<applescript text>”]
Options
Click Specify to display the “Perform AppleScript” Options dialog box, where you can set
the following options.
Calculated AppleScript lets you create a calculation to use as the AppleScript text.
Native AppleScript lets you manually enter the text of an AppleScript (up to 30000
characters). Indenting of repeat loops and conditional statements is not supported.
Web compatibility
This script step is not web-compatible.
Description
Sends AppleScript commands to another application. 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 a Mac OS 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.)
Tips on usage
FileMaker Pro can use the Perform AppleScript script step to send Apple events
to
itself or to FileMaker Pro software running on other machines.
If you are using FileMaker Pro for Mac OS and you performed a complete installation,
see the FileMaker Pro Apple Events Reference database (located in the
FileMaker Pro\English Extras\Apple Events folder) for additional information and
examples.