• 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: text item delimiters
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: text item delimiters
  • Next by Date: Print ps
  • Previous by thread: Re: text item delimiters
  • Next by thread: Re: text item delimiters
  • Index(es):
    • Date
    • Thread