Re: text item delimiters
Re: text item delimiters
- Subject: Re: text item delimiters
- From: Rob Jorgensen <email@hidden>
- Date: Mon, 16 Sep 2002 15:10:12 -0400
On 9/16/02, Kinsella, John R. commented:
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 \.
Help! I have to be able to replace the \'s in a variable given by the user.
I can set the text item delimiters to anything else and it replaces just
fine, but the \ just doesn't work.
I can't address your problem directly, but whenever I've run into
escape problems, I'd put the string in a text file and then read it
in. So, in your case, create a file whose content is simply: \
Then read it into a variable for use as a TID. Not elegant but
usually effective in the cases that I've needed/used it.
--
Rob Jorgensen
Ohio, USA
_______________________________________________
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.