Re: newbie question: AppleScript and hashbang
Re: newbie question: AppleScript and hashbang
- Subject: Re: newbie question: AppleScript and hashbang
- From: has <email@hidden>
- Date: Mon, 24 Apr 2006 18:35:55 +0100
Peter Vandenberk wrote:
>So my newbie question is pretty straightforward: is there a more
>elegant way to write hashbang-enabled AppleScripts (or, more
>generally, osascripts)?
One possibility would be to skip the AppleScript language and work in one that's already a natural Unix citizen.
For example, Python has excellent application scripting support; see appscript: <http://freespace.virgin.net/hamish.sanderson/appscript.html>
Or if Perl's more your thing then take a look at Mac::Glue, which is bundled in Tiger or available from CPAN. I've not used it myself, but it all looks suitably Perlish.:)
Ruby also provides a degree of support via RubyAEOSA. The Apple events bridge is currently a bit too basic for comfort (I'm thinking about porting appscript to it eventually), but you can use it execute AppleScript code okay. (Perl and Python can invoke AppleScripts too, btw.)
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