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


Click here to return to the 'The long way?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
The long way?
Authored by: jaysoffian on Feb 07, '04 04:12:29PM

The problem with using a HERE document is that osascript has to compile the entire applescript each time. That may be a length operation if you are either running the script multiple times, or it is a long script. Also, you have to emed the entire applescript inside your sh script, which you may not wish to do.

The advantage of this hint, over a here document, is that you can run a pre-compiled script and pass it arguments.



[ Reply to This | # ]
The long way?
Authored by: formido on Feb 10, '04 02:25:20PM

A good point, but if that really becomes a problem, you can just put the main script in a separate, pre-compiled file and only call it from the HERE doc. This allows the complexity of set-up to scale with your needs.



[ Reply to This | # ]