Re: is there a sample project for an AppleScriptable Cocoa app?
Re: is there a sample project for an AppleScriptable Cocoa app?
- Subject: Re: is there a sample project for an AppleScriptable Cocoa app?
- From: Daniel Morrow <email@hidden>
- Date: Mon, 21 Feb 2005 14:25:41 -0500
Thanks for everyone's help so far. I do have the Hillegass book, and
it's great.
However, I discovered something which I can't explain.
I have a resource file (MyApp.rsrc) in my project. It's a data-fork
file, but it is a resource file, nonetheless. If I remove this file
from my project, Script Editor is able to read my scripting
dictionaries and display them properly. But if I put the file back in,
and then drag the app onto Script Editor, I get an error saying it
can't show me the dictionary because my app is not scriptable.
Do I need to generate an 'aete' resoure if I have a resource file in
there or something?
-Dan.
On Feb 21, 2005, at 12:34 PM, email@hidden wrote:
I suggest getting a copy of Cocoa Programming for Mac OS X, 2nd ed.
(Aaron
Hillegass). There is a very simple applescripted example and an
explanation. If you go to the book's web site you can download the
solutions to the examples in the book, too.
-Chris
On 2/21/05 9:15 AM, "Daniel Morrow" <email@hidden> wrote:
I can't seem to make my app scriptable, no matter what I try, and no
matter how many docs I read. It's gotten incredibly frustrating.
(I've done this in the Carbon world, btw, and I'm starting to think
that not everything is easier in Cocoa, so please prove me wrong)
Anyway, I've created "scriptSuite" and"scriptTerminology" files, and
the Script Editor doesn't recognize my app. I've also tried putting
the
script definitions into an old-school 'aete' resource. "Script Editor"
does now recognize the app, and I can see my app's dictionary, but
then
when I run the script, my event-handler never gets called, and an
error
is returned to the Script Editor, which is useless.
So, if there is a small Cocoa-based app which implements one or two
AppleEvents, I'd be really happy to take a look at it.
Thanks,
-Dan.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden