• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
AppleScript-ObjC Bridge Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: How are email apps written in iOS?
  • Next by Date: AppleScript-ObjC Bridge Problem
  • Previous by thread: Re: How are email apps written in iOS?
  • Next by thread: AppleScript-ObjC Bridge Problem
  • Index(es):
    • Date
    • Thread