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
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.