Re: newbie question: AppleScript and hashbang
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