Re: Applescript in Cocoa - problem with custom command
Re: Applescript in Cocoa - problem with custom command
- Subject: Re: Applescript in Cocoa - problem with custom command
- From: Don Briggs <email@hidden>
- Date: Mon, 15 Sep 2003 14:09:40 -0700
Hello, Keo and all
I, too, had a lot of trouble with Applescript-Cocoa integration.
I've encapsulated most of what I've learned on my .Mac homepage:
http://homepage.mac.com/donbriggs
You'll find some Applescript-Cocoa examples with complete source code
and test scripts.
There's also an application, Suite Modeler, which will diagnose your
suite in its free Demo mode.
It also has online help that might actually help.
In licensed mode, Suite Modeler will assist you in composing your suite.
It will save your suite and also emit "rapid prototype code" if you
like.
Good luck,
Don
On Sep 15, 2003, at 1:13 PM, Keo Darksbane wrote:
Hi all...
After reading Apple's abyssmal documentation
on Applescript-Cocoa integration, and searching the
web for tutorials, I've come down to the wall.
I have set up my script suite, created what I think is
a new command, and wrote a test script. Now every time
I run it I get an NSCannotCreateScriptCommandError,
even after trying extensive variations.
I followed the advice of a previous poster on this
list and created a subclass of NSScriptCommand called
TypeInCommand, specified it as my custom command's
superclass, and erased the SupportedCommands section
from my class in the .scriptSuite. Same error.
Anyone have suggestions or, even better, explanations
of how this horrible hack called Cocoa-Applescript
integration is supposed to work?
Thanks!
-Nathan Keeney
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.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.
_______________________________________________
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.