| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
I'm making some progress AppleScripting my Core Data app but have a
issue/question.
I can write a command like `set newCompany to make new company` and the
newCompany reference in the result window looks like:
company "FADA519A-8140-495C-8613-1ADC6CF5BA54" of application "Billable"
However, if I try to write `name of newCompany` it fails with
NSReceiverEvaluationScriptError: 4. According to the documentation this
means "The object or objects specified by the direct parameter to a command
could not be found." When this error happens it highlights 'name' so does
this mean it can't find the name attribute on this object or is the object
reference just bad somehow?
Some commands that are working fine for me:
get name of company 5
make company with properties {name:"WWDC"}
delete company named "WWDC"
The objectSpecifier on my company class looks like this. `uuid` is a custom
attribute i create on awakeFromInsert.
- (NSScriptObjectSpecifier *)objectSpecifier
{
NSScriptClassDescription* appDesc = (NSScriptClassDescription*)[NSApp
classDescription];
return [[[NSNameSpecifier alloc]
initWithContainerClassDescription:appDesc containerSpecifier:nil
key:@"scriptingCompanies" name:[self uuid]] autorelease];
}
Any thoughts or debugging suggestions? This (AppleScript itself and
implementing it) is still way over my head. :-(
~ Mike
--
Work: http://ClickableBliss.com
Play: http://MikeZornek.com
_______________________________________________
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
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.