Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invalid Key Form -10002



Thanks for the reply, it clarified some things and I found the problem. It was not index-related (I had already implemented that). I had the code for thingB's ID property set to something other than "ID " in my .sdef file. Changing it to "ID " cleared things right up. The Scriptable Core Data project you linked to looks very helpful/ promising. Unfortunately, my app has to support Tiger at least until the next major version so I can't use it now, but I'm sure it will be helpful for future Leopard-only projects. It seems like Apple should have made supporting AppleScript in Core Data somewhat simpler as it has been a lot of extra work to get it working.

Again thanks for the help.  Everything's working great now.

-Andrew

On Nov 10, 2007, at 3:35 PM, has wrote:

Andrew Madsen wrote:

Subject: Invalid Key Form -10002

I don't quite understand what "Invalid Key Form" means


See keyAEKeyForm:

	http://developer.apple.com/DOCUMENTATION/mac/IAC/IAC-107.html

If I had to guess: you're trying to refer to an item in a Core Data collection, but Core Data uses NSSets, which are unordered (non- indexed), so Cocoa Scripting errors when it tries to resolve a by- index specifier against the NSSet.

BTW, this might be of interest:

	http://scriptcoredata.sourceforge.net/

HTH

has
--
http://appscript.sourceforge.net
http://rb-appscript.rubyforge.org

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-implementors mailing list (email@hidden )
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-implementors/email@hidden


This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-implementors mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/applescript-implementors/email@hidden

This email sent to email@hidden
References: 
 >Re: Invalid Key Form -10002 (From: has <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.