I've seen plenty of examples on how to use NSAppleScript
, e.g.:
NSAppleScript *script = = [[NSAppleScript alloc] initWithSource:source];
NSDictionary *errorDict;
if ( ![script compileAndReturnError:&errorDict] ) {
// ...
}
But I've never seen any example code that does anything with errorDict
. In my case, I'd like to extract the error message string. How does one do that?