• 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: Peter Vandenberk <email@hidden>
  • Date: Mon, 24 Apr 2006 16:21:30 +0100

On 24 Apr 2006, at 12:09, Emmanuel wrote:
The cases where a UNIX executable calling osascript
is more convenient than a standard AppleScript applet
are quite rare: why wouldn't you use a standard applet?

Thanks for the reply, Emmanuel. I understand the point you are making, but I basically want to combine the ease of scripting (ie. not go through the "Save As" cycle in the Script Editor) with the benefits of Unix-style integration (ie. integrate my AppleScripts with scripts in other languages - sh, perl, ruby, etc - and other Unix facilities such as cron, for instance) and hence my original question:


So my newbie question is pretty straightforward: is
there a more elegant way to write hashbang-enabled
AppleScripts (or, more generally, osascripts)?

After posting my original question, I did some more googling and found the following hack:


http://www.macosxhints.com/article.php?story=20040617170055379

Anyone know of another approach?  Thanks again,

Peter Vandenberk

_______________________________________________
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


  • Follow-Ups:
    • Re: newbie question: AppleScript and hashbang
      • From: Christopher Nebel <email@hidden>
    • Re: newbie question: AppleScript and hashbang
      • From: Doug McNutt <email@hidden>
References: 
 >newbie question: AppleScript and hashbang (From: Peter Vandenberk <email@hidden>)

  • Prev by Date: Some basic AppleScript questions and about PowerPoint scripting
  • Next by Date: Re: Swap keyboard from "belgium" layout to US
  • Previous by thread: Re: newbie question: AppleScript and hashbang
  • Next by thread: Re: newbie question: AppleScript and hashbang
  • Index(es):
    • Date
    • Thread