• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: preserving literal text in AppleScripts
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >preserving literal text in AppleScripts (From: Cameron Hayne <email@hidden>)
 >Re: preserving literal text in AppleScripts (From: "Mark J. Reed" <email@hidden>)

  • Prev by Date: Re: preserving literal text in AppleScripts
  • Next by Date: Re: preserving literal text in AppleScripts
  • Previous by thread: Re: preserving literal text in AppleScripts
  • Next by thread: Re: preserving literal text in AppleScripts
  • Index(es):
    • Date
    • Thread