Re: [OT] My life after AS: shell commands, perl?
Re: [OT] My life after AS: shell commands, perl?
- Subject: Re: [OT] My life after AS: shell commands, perl?
- From: has <email@hidden>
- Date: Fri, 2 Dec 2005 20:54:42 +0000
Kevin Walzer wrote:
>4. Very nice integration with AppleScript. With the Tclapplescript
>extension, you can run AppleScripts from Tcl
Yep, I think all four provide serviceable AppleScript bridges. For any serious application scripting work you're best to go with Perl or Python though, as constantly calling through to AppleScript gets expensive and the Apple Event Manager bridges in Ruby and Tcl are a bit too basic for comfort [AFAIK].
BTW, Tcl has an interesting-looking OSA component implementation by Philip Aker (another Tcl fan) that you might like to check out:
http://homepage.mac.com/philip_aker/osa/osa.html
He also provides basic OSA components for several other languages, including Perl, Python and Ruby.
Regarding OSA language components: this is the one area where you're still largely limited to AppleScript if you want to do anything beyond the basic compile and run operations. UserTalk had extensive OSA component support at one point, but I think it's pretty well fossilised these days. JavaScriptOSA is pretty advanced, but also somewhat flawed unfortunately. There's a couple of extensive Python OSA components kicking about (including one by me), but neither sufficiently finished/reliable at the moment to replace AppleScript (maybe some day...). That said, you only need OSA components when attaching scripts to attachable applications or developing in Studio, so it's not a major issue.
Oh, and forgot to mention in last post: I've also just released a nice little Apple event handling framework for Python called aemreceive. Doesn't provide any special support for resolving object specifiers (if you want to do that, best to use Cocoa Scripting via PyObjC), but very convenient for creating a basic scripting interface in Python-based apps that don't need to provide a full-blown Apple Event Object Model; e.g. my recently finished TextCommands FBA (see osaxen.com) is built on it.
HTH
has
--
http://freespace.virgin.net/hamish.sanderson/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden