• 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: Mark Lively <email@hidden>
  • Date: Mon, 16 Sep 2002 15:21:34 -0400

On Monday, September 16, 2002, at 02:45 PM, Kinsella, John R. wrote:

But doing this, the \'s that I want to replace are ignored because it's
looking for \" instead of \.

Because when the compiler sees \ it looks for something that needs to be trapped so that it can read right in the script. One of those things is \ so \\ in a string will actually be \ in use.

for clarity

set foo to "a\\b"
set applescript's text item delimiters to "\\"
set foo to text item 1 of foo
--"a"

-Mark
Have LART, will travel
_______________________________________________
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: Addressing the folder that contains an item
  • Next by Date: (no subject)
  • Previous by thread: Re: text item delimiters
  • Next by thread: Iterating through a list and moving items
  • Index(es):
    • Date
    • Thread