Making cocoa-java app applescriptable

Hello,
I’ve been busting my head :mad: trying to make a pure java app applescriptable. The app is written in java for OS 10.4.x. This application controls an XM Direct tuner. I have low level model classes that interface with the XM tuner. I have a UI class “HXMDisplayController” which interfaces with the model classes. The UI class controller is a subclass of NSObject. I want to make the app applescriptable so that you can power up, change and request channel info and mute the box. I’ve created a dictionary for application and it looks fine. I’ve added the “sdef” file to my target in xcode. I’ve set the following in the .plist file:

Since the application is a java app, I have to use the java bridge. I added JavaVM frame work to the app and imported it in the main. I also created a Objective C class to interface with my java class and imported the Objective-C class header. So what am I missing. The question I have is don’t I have to instantiate the AppleScript class so that it can receive applescript commands.

When I send it an applescript commands it returns me a null string or NSRecevier something error???

HELP Please :slight_smile:

Model: MacMini
Browser: Firefox 1.0.7
Operating System: Mac OS X (10.4)

I think you would get more input at:
http://lists.apple.com/applescript-implementors