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


Click here to return to the 'A shell/AppleScript interaction trick' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A shell/AppleScript interaction trick
Authored by: mstillwell on Jun 18, '04 08:52:30PM

If your script produces output, you will probably want to pipe the output to tr:

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

-- ...

END

Also note that compiled scripts are very much faster than osascripts. (At least in startup time.)



[ Reply to This | # ]
A shell/AppleScript interaction trick
Authored by: ygor on Jun 18, '04 09:41:44PM
Also note that compiled scripts are very much faster than osascripts. (At least in startup time.)
OK, now please explain to me how you get a compiled script into a shell script

[ Reply to This | # ]
A shell/AppleScript interaction trick
Authored by: mrchaotica on Jun 19, '04 03:13:19AM

How do you produce output (to stdout) with an applescript?



[ Reply to This | # ]
A shell/AppleScript interaction trick
Authored by: Zaknafein on Jun 21, '04 02:15:32AM
Very simple:

set Value to 10
return Value


[ Reply to This | # ]