Script Steps Reference

Table Of Contents
Miscellaneous script steps
F
ILEMAKER SCRIPT STEPS REFERENCE 273
Bring Target Application to foreground activates the target application and displays it on
the screen. Displaying the target application can slow down the performance of your script.
If Bring Target Application to foreground is not selected, the event is performed in the
background.
Wait for event completion before continuing tells FileMaker Pro to wait until the event is
finished before continuing. If you don't want to wait until the event is completed, deselect
this option.
Copy event result to the clipboard copies the resulting events data to the Clipboard, from
which it can later be retrieved. This option is disabled if Bring Target Application to
foreground is selected.
Specify Application allows you to select the target application.
Compatibility
Originated in
FileMaker Pro 6.0 or earlier
Description
Send Event starts another application, opens a document in another application, or prints a
document in another application (Windows); sends an Apple event to another application (OS
X).
Each Send Event script step sends one event. You can include more than one Send Event
in a script.
When specifying a document or application by calculation or text, the file type or application
name will appear as <unknown> in the script definition.
Windows: For additional scripting capabilities, you can create a program in Basic or C and
run that program with this script step.
OS X: When FileMaker Pro sends an Apple event, it sends text (not compiled) data. You
must know what information the target application expects to receive with an event.
Example 1
In OS X, opens the TextEdit application.
Send Event ["TextEdit", "aevt", "oapp"]
Example 2
In Windows, opens the Notepad application.
Send Event ["aevt"; "odoc"; "NOTEPAD.EXE"]
Where the script step runs Supported
FileMaker Pro Yes
FileMaker Server scheduled script No
FileMaker Go No
Custom Web Publishing No
FileMaker WebDirect No
Runtime solution Yes