• 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
Re: AppleScriptObjC Problem?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AppleScriptObjC Problem?


  • Subject: Re: AppleScriptObjC Problem?
  • From: Shane Stanley <email@hidden>
  • Date: Thu, 12 Nov 2015 09:15:59 +1100
  • X_v_e_cd: 3780c6b58aa32c3bd8552148d2f69bd7
  • X_v_r_cd: cbd0cb6d5dc6b479ebec476755481520

On 12 Nov 2015, at 3:15 AM, Dave <email@hidden> wrote:

> 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

If theMessageIDString is an NSString passed from Objective-C, it will still be an NSString -- you need to convert it to text first. Try "as text as number".

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden


  • Follow-Ups:
    • Re: AppleScriptObjC Problem?
      • From: Dave <email@hidden>
References: 
 >AppleScriptObjC Problem? (From: Dave <email@hidden>)

  • Prev by Date: OSX 10.11.1 Notes – Get Selected Note
  • Next by Date: Re: AppleScript-Users Digest, Vol 12, Issue 547
  • Previous by thread: AppleScriptObjC Problem?
  • Next by thread: Re: AppleScriptObjC Problem?
  • Index(es):
    • Date
    • Thread