Help

Table Of Contents
Creating scripts to automate tasks
F
ILEMAKER PRO HELP 437
' (Note: always set the application variable to Nothing after quitting.)
FMApp.Quit
Set FMApp = Nothing
End Sub
Related topics
Using FileMaker Pro ActiveX Automation (Windows)
ActiveX Automation objects, methods, and properties (Windows)
Scripting with Apple events (OS X)
Apple events let you automate, customize, and control many OS X applications. FileMaker Pro can
send Apple events to applications that support them. FileMaker Pro can also receive Apple events
from applications that have been designed to send Apple events.
Apple events are grouped into suites. FileMaker Pro supports the following:
Required suite
A special subset of the Core, Table, and Database suites
FileMaker Pro suite
Object Model
A subset of the URL suite
To send Apple events from FileMaker Pro to other applications, define a script and use either the
Send Event (OS X) script step or the Perform AppleScript (OS X).
To see a list of FileMaker Pro compatible Apple events, open the FileMaker Pro Apple events
dictionary in a script editor like AppleScript Editor.
Apple events troubleshooting (OS X)
The following are known Apple events issues:
When you attempt to find a record outside the current found set, no error is returned.
You cannot use a list of IDs to retrieve records from a database.
Performing a filtered reference on a range of records returns all matching records instead of
matching records within the specified range.
You cannot use “whose” statements on summary fields to find records.
If multiple occurrences of a field appear on a layout, all occurrences are returned when
getting or setting data.
Choose from the following list of Apple events errors:
Apple events error: "Apple event timed out" (-1712)
Apple events error: "Expected expression but found unknown token"
Apple events error: "Invalid object containment" (-1723)
Apple events error: "Object not found" (-1728)
Apple events error: "Data is being accessed by another user, script, or transaction" (-10011)
Apple events error: "Set Data failed. Invalid data was supplied" (-17005)
Apple events error: "Event failed. User canceled the event processing" (-17006)