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: Dustin Voss <email@hidden>
- Date: Mon, 21 Feb 2005 15:05:06 -0800
On 21 Feb, 2005, at 11:25 AM, Daniel Morrow wrote:
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?
If the resource file has an 'scsz' resource, with
"dontLaunchToGetTerminology" set, that might interfere with Script
Editor's ability to get your app's dictionary. You could look into
that.
In addition to the resources others have pointed out, I'd like to
direct you to http://cocoadev.com/?HowToSupportAppleScript and
http://cocoadev.com/?DirectParametersAsValues. There are some useful
tricks and work-arounds there.
_______________________________________________
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