Re: text item delimiters
Re: text item delimiters
- Subject: Re: text item delimiters
- From: Paul Berkowitz <email@hidden>
- Date: Mon, 16 Sep 2002 12:22:06 -0700
On 9/16/02 11:45 AM, "Kinsella, John R." <email@hidden> wrote:
>
Does anyone have an idea why I cannot set AppleScript's Text Item delimiters
>
to "\" ??
>
When I attempt to do so, and then check the script, I get an "expected "
>
instead got end of line" error. So when I add the " where it wants it I get
>
a line that says
>
Set Applescript's text item delimiters to "\"" (at this point the script
>
checks out fine.)
>
>
But doing this, the \'s that I want to replace are ignored because it's
>
looking for \" instead of \.
>
Since \ is used as the escape character for quoted literal " (as in \") it
needs its own escape character, which is itself: \\
set AppleScript text item delimiters to {"\\"}
will find the single \ back-slashes. (Yes if you really wanted to find
double backslashes you'd have to use "\\\\")
--
Paul Berkowitz
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.