• 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: Mon, 18 Dec 2006 16:53:23 -0500

On 18-Dec-06, at 1:56 PM, Christopher Nebel wrote:

What I believe Emmanuel is suggesting is that you write your string normally (i.e., without the escaping), and then -- without trying to compile it -- invoke a script that transmogrifies it into the properly escaped AppleScript version. You could make one that worked on the selection and altered it in place, or perhaps one that works on the clipboard contents, so you'd copy, invoke, paste. Smile has such a script already included.

Yes - that would work as far as avoiding the manual work of inserting the escapes.
But it would mean that the script's source code would have been modified (into the escaped form).
This has two undesirable consequences:
- it is more difficult to read the code (string that has been escaped)
- it is much more difficult to edit that string
(recall that the string I am referring to is an arbitrarily complicated Bash or Perl script that will be run via 'do shell script')
Hence my original question still stands - how to have embedded text in an AppleScript that is left strictly alone.
It seems that this is not possible, so I guess I should submit this as an enhancement request.


--
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: Emmanuel <email@hidden>)
 >Re: preserving literal text in AppleScripts (From: Cameron Hayne <email@hidden>)
 >Re: preserving literal text in AppleScripts (From: Christopher Nebel <email@hidden>)

  • Prev by Date: Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
  • Next by Date: Re: Can't get every document file of every folder of startup disk whose creator type = "MSIE"
  • Previous by thread: Re: preserving literal text in AppleScripts
  • Next by thread: Is there a way to do this in batches?
  • Index(es):
    • Date
    • Thread