Executes an Apple event in the context of the receiver, as a means of allowing the application to invoke a handler in the script.
- macOS 10.2+
- Mac Catalyst 13.0+
The Apple event to execute.
On return, if an error occurs, a pointer to an error information dictionary.
The result of executing the event, or
nil if an error occurs.
Compiles the receiver before executing it if it is not already compiled.