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: Applescript error - NSCannotCreateScriptCommandError



On Jul 8, 2004, at 7:21 AM, Steve Palmer wrote:

No. Is that important? None of the samples or tutorials that I've seen mention it.

Yes. If you make an object accessible through AppleScript, then it must implement -objectSpecifier or else you won't be able to use the object as a script variable. For example, running "set theWidget to make new widget at front of widgets" followed by "open theWidget" will end with an error on that last line if -objectSpecifier is not implemented.

I'm not sure where this is documented, but I think you'll find more information about -objectSpecifier by checking the archives.

Nick Zitzmann
<http://www.chronosnet.com/>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >Applescript error - NSCannotCreateScriptCommandError (From: Steve Palmer <email@hidden>)
 >Re: Applescript error - NSCannotCreateScriptCommandError (From: Nick Zitzmann <email@hidden>)
 >Re: Applescript error - NSCannotCreateScriptCommandError (From: Steve Palmer <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.