Automating tasks with scripts > Scripting with Apple events (macOS)
 
Scripting with Apple events (macOS)
Apple events let you automate, customize, and control many macOS 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 script step or the Perform AppleScript (macOS).
To see a list of FileMaker Pro compatible Apple events, open the FileMaker Pro Apple events dictionary in a script editor like AppleScript Editor.
Notes 
To allow other applications to access a FileMaker solution with Apple events, the user’s account must have the fmextscriptaccess extended privilege enabled. See Editing extended privileges for a privilege set.
For more information about scripting with Apple events, search the FileMaker Knowledge Base.