Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'shell scripts' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
shell scripts
Authored by: mstillwell on Nov 28, '03 01:46:44AM

I agree that in most cases, it's probably easiest to put $1, $2, etc. directly into the here document. However, here's another idea, from Chris Nebel of AppleScript engineering.

Also note that if you're outputting text from your AppleScript, you'll need to feed it through tr to map the \r's to \n's:


#!/bin/sh

/usr/bin/osascript << END | tr "\r" "\n"

-- your script here

END



[ Reply to This | # ]