AppleScript-ObjC Bridge Problem
AppleScript-ObjC Bridge Problem
- Subject: AppleScript-ObjC Bridge Problem
- From: Dave <email@hidden>
- Date: Wed, 11 Nov 2015 15:27:51 +0000
Hi,
Iām using the AppleScript-ObjC Bridge to call an AppleScript from an XCode Objective-C project. This is the handler I am calling:
on getOutlookMessagePropertiesDictionaryWithMessageID:(theMessageIDString)
set myDictionary to the pMessageDictionary of me
set myMessageID to theMessageIDString as number
ā
ā Statements commented out for debugging
--
return myDictionary
end getOutlookMessagePropertiesDictionaryWithMessageID:
This is giving an error on the:
set myMessageID to theMessageIDString as number
I tried calling the handler from an AppleScript in the Script Editor and it runs ok, but it fails in the App. If I comment this line out, it runs ok.
Any ideas on what could be causing it fail? I am passing an NSString into the method and it definitely numeric at the log shows:
Printing description of theMessageIDString:
540
Thanks a lot
Dave
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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 email@hidden