• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: newbie question: AppleScript and hashbang
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Some basic AppleScript questions and about PowerPoint scripting
  • Next by Date: QuarkXPress 4.11 script breaks in 6.5 - Why?
  • Previous by thread: Re: newbie question: AppleScript and hashbang
  • Next by thread: Re: newbie question: AppleScript and hashbang
  • Index(es):
    • Date
    • Thread