Pointers to good reference on writing AppleScriptable Cocoa project?
I've got an Objective-C program that I need to make Ap开发者_开发百科pleScriptable. 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.
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:
- SimpleScripting
- SimpleScripting Properties
- SimpleScripting Verbs
- SimpleScripting Objects
精彩评论