views:

31

answers:

1

I've got an Objective-C program that I need to make AppleScriptable. I've looked through the Apple references and they're all at exactly the wrong level, either for the applescripter, or too high level, or too low level.

Can anyone point me at a good resource for getting started on this? or perhaps a sample project I can poke at?

thanks.

+3  A: 

It's surely subjective but I think Apple's Cocoa Scriptability is a decent document. Did you find it too high level? or too low level? Depending on that I need to change how I answer you.

To get started, Apple has a nice set of sample codes:

Yuji
I second this. These sample projects are where it is at. You do them in order, each builds on the last, and each has a good readme explaining what is happening. A word of warning.. I was pretty excited when i found the App "SDef editor" but it seems to be out of date and even opening an sdef file (and not saving) will mangle it irreparably - Don't go near it.
mustISignUp
yeah, the scriptability pages were mostly too high level. They mostly talk about what scriptability is, and why you would want it, and a little about how to write scripts, etc. But not much on how to make a project scriptable... I'll take a look at those examples. those look very helpful, thanks!
Brian Postow