Re: preserving literal text in AppleScripts
Re: preserving literal text in AppleScripts
- Subject: Re: preserving literal text in AppleScripts
- From: Cameron Hayne <email@hidden>
- Date: Fri, 15 Dec 2006 21:21:07 -0500
On 15-Dec-06, at 8:52 PM, Mark J. Reed wrote:
Instead of passing a large string containing a complex
command to "do shell script", why not store it in a script file and
just run that?
That makes the AppleScript less easy to pass on to others since it
will then depend on the separate script file being installed at some
known location (or at least in the execution PATH).
But your question leads me to a possibly better solution - I could
embed the text (in this case the source code for a Bash or Perl
script) in the Resources folder of an AppleScript compiled as an
application bundle, and then refer to it there in the main AppleScript.
That would work well for distribution of an AppleScript application,
but it doesn't lend itself so well to distributing AppleScripts that
are supplied in text form on web pages for example.
--
Cameron Hayne
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/mailman//archives/applescript-users
This email sent to email@hidden