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: 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