• 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: Returning an NSDictionary/record to AppleScript command
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Returning an NSDictionary/record to AppleScript command


  • Subject: Re: Returning an NSDictionary/record to AppleScript command
  • From: Jerry Krinock <email@hidden>
  • Date: Mon, 11 Dec 2006 19:53:34 -0800
  • Thread-topic: Returning an NSDictionary/record to AppleScript command

The answer did not seem to be in that Omni Group framework.

But after thinking more about that error message, and reverse-engineering
some code I found using Google, I finally got it to work.  You have to
implement that method which the error says it is looking for,
-scriptingRecordDescriptor, in a category, and in that implementation you
need this thing:

[NSAEDescriptorTranslator sharedAEDescriptorTranslator]

which is some kind of Apple "private API".  It looks like maybe a "bug of
omission", that Cocoa is missing the implementation of
-scriptingRecordDescriptor for NSDictionary, so we have to patch it in.

After I understand more I'll post further questions on
applescript-implementors, since it looks like this issue is more related to
AppleScript implementation than Cocoa.


_______________________________________________

Cocoa-dev mailing list (email@hidden)

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

References: 
 >Re: Returning an NSDictionary/record to AppleScript command (From: Jerry Krinock <email@hidden>)

  • Prev by Date: Reporting Wizard in Cocoa
  • Next by Date: Re: Revert to factory settings: how to do it?
  • Previous by thread: Re: Returning an NSDictionary/record to AppleScript command
  • Next by thread: IB layout
  • Index(es):
    • Date
    • Thread