Instance Method

compileAndReturnError(_:)

Compiles the receiver, if it is not already compiled.

Declaration

func compileAndReturnError(_ errorInfo: AutoreleasingUnsafeMutablePointer<NSDictionary?>?) -> Bool

Parameters

errorInfo

On return, if an error occurs, a pointer to an error information dictionary.

Return Value

true for success or if the script was already compiled, false otherwise.

See Also

Compiling and Executing a Script

func executeAndReturnError(AutoreleasingUnsafeMutablePointer<NSDictionary?>?) -> NSAppleEventDescriptor

Executes the receiver, compiling it first if it is not already compiled.

func executeAppleEvent(NSAppleEventDescriptor, error: AutoreleasingUnsafeMutablePointer<NSDictionary?>?) -> NSAppleEventDescriptor

Executes an Apple event in the context of the receiver, as a means of allowing the application to invoke a handler in the script.