Adding AppleScript support to a Carbon app

I’m porting to Carbon a very simple scientific application, and this is my first programming project.

I’ve searches this site, the ADC and googled a lot, and haven’t found what I was looking for, so perhaps some of you guys can help me out.

I’m trying to add AppleScript support to this application, written in Carbon, but the documentation I’ve found seems awfully obscure. I’d just like some sample code or beginner documentation on making your application interact with AppleScript. Specifically, I have an action that is invoked by a mouse clic right now, and I’d like to execute this action with an AppleScript.

Hope you guys can help, thanks.

Your best bet is Apple’s AppleScript Implementors mailing list:

You can talk there to apple’s engineers and some high-quality applescript-implementors, which will probably redirect you to the best resources and provide source code.