Instance Method


Compiles the receiver, if it is not already compiled.


- (BOOL)compileAndReturnError:(NSDictionary<NSString *,id> * _Nullable *)errorInfo;



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

Return Value

YES for success or if the script was already compiled, NO otherwise.

See Also

Compiling and Executing a Script

- executeAndReturnError:

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

- executeAppleEvent:error:

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