On 22 Sep. 2016, at 10:20 pm, Dave <d...@looktowindward.com> wrote:
> myNetworkleScriptSourceString = [[NSString alloc] 
> initWithContentsOfFile:myNetworkleScriptFilePath 
> encoding:NSUTF8StringEncoding error:&myErrorInfo];
> if (myErrorInfo != nil)

You should be testing for !myNetworkleScriptSourceString; you shouldn't touch 
myErrorInfo unless myNetworkleScriptSourceString is nil.

> [myNetworkleScript executeAndReturnError:&myErrorDictionary];
> if (myErrorDictionary != nil)

Check the result of executeAndReturnError: first.

> So I’m wondering if it is something to do with the AppleScript handling?

What happens if you just comment out the execution line? (My guess is it will 
make no difference.)

Shane Stanley <sstan...@myriad-com.com.au>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>


Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to arch...@mail-archive.com

Reply via email to