Re: Returning an NSDictionary/record to AppleScript command
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