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


Click here to return to the 'Using redirects to run AppleScripts in the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Using redirects to run AppleScripts in the Terminal
Authored by: olivesoft on May 06, '04 02:27:24PM
cat is one of the most abused commands in UNIX. The best way is probably just typing to standard in as the first poster suggested. But if you insist upon using here documents to contain the script that will be used as standard input into the osascript command, just use the following:
osascript << done
I would also suggest using some other end tag than 'done'.

---
-Bob
---------------------
I tend to think of [Mac] OS X as Linux with QA and Taste.
-James Gosling, Java Architect

[ Reply to This | # ]