Re: OSAScript class reference
Re: OSAScript class reference
- Subject: Re: OSAScript class reference
- From: has <email@hidden>
- Date: Fri, 16 Apr 2010 23:28:16 +0100
Scott Babcock wrote:
> Does anyone have a line on OSAScript class documentation? This class lives in the OSAKit framework, and the only documentation I've been able to track down is the sketchy comments in the header files themselves. This framework has been available for quite some time - it's installed on a machine that I have running Mac OS X 10.4.11.
There isn't. OSAScript is a public API, but undocumented. Best bet is to read the OSAScript header files, then compare to the original Carbon OSA APIs, which are marginally better documented.
> This class apparently supports a variety of OSA-compliant languages - AppleScript, Python, Ruby, ...
Since the only full OSA-compatible language available is AppleScript, that's really a red herring. OSA=AppleScript, to all intents and purposes.
Incidentally, the topic of implementing alternative OSA languages just came up on AS-implementors, where my advice was to ignore the OSA architecture in favour of hosting out-of-process interpreters and pipes or other suitable IPC mechanism. The only reason for implementing alternative OSA languages would be if you want to leverage them into existing OSA-capable apps. If you're looking to add new language plugin support to an application, I would recommend OSA for AppleScript and rolling your own plugin system for anything else.
> It also appears to enable the addition of script editor capabilities in custom applications.
There are several classes provided by OSAKit for this purpose (they're a subset of AppleScript Editor features).
If you wish to discuss this stuff further, I'd suggest taking it to AS-implementors and saying what it is you're interested in doing.
HTH
has
--
Control AppleScriptable applications from Python, Ruby and ObjC:
http://appscript.sourceforge.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden