Send Event (Windows)
Purpose 
Starts another application, opens a document in another application, or prints a document in another application.
Format 
Send Event [“<aevt>”; “<event name>”; “<filename>”]
Options 
Click Specify to display the “Send Event” Options dialog box, where you can set the following options.
 •
For Send the <event name> message, select:
 •
open document/application to tell FileMaker Pro to open a document file or application. Documents are opened using the application that Windows has associated with the document’s file type.
 •
print document to tell FileMaker Pro to print a document in another application.
 •
Select File or click Specify to specify a document/application to open, or a document to print. For more information, see Creating file paths.
 •
Select Calculation or click Specify to create a message from a calculation.
 •
Select Text to manually enter text for the message to be sent.
 •
Select Bring target application to foreground to activate the target application and display 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.
Compatibility 
 
Where the script step runs 
Supported 
FileMaker Pro 
Yes 
FileMaker Server scheduled script 
No 
FileMaker Go 
No 
Custom Web Publishing 
No 
Instant Web Publishing 
No 
Runtime solution 
Yes 
Originated in 
FileMaker Pro 6.0 or earlier
Description 
For additional scripting capabilities, you can create a program in Basic or C and run that program with this script step.
Note  When specifying a document or application by calculation or text, the file type or application name will appear as <unknown> in the script definition.
Examples 
To launch the Notepad application, select the open document/application message, click File, and specify notepad.exe. The following script step appears in the Script Definition dialog box:
Send Event ["aevt"; "odoc"; "NOTEPAD.EXE"]
To open a document created by another application, select the open document/application message, click File, and specify the file (for example image.bmp). The following script step appears in the Script Definition dialog box:
Send Event ["aevt"; "odoc"; "image.bmp"]
Related topics 
Defining calculation fields
Script steps reference (alphabetical list)
Script steps reference (category list)