Re: text item delimiters
Re: text item delimiters
- Subject: Re: text item delimiters
- From: Helmut Fuchs <email@hidden>
- Date: Mon, 16 Sep 2002 21:08:39 +0200
At 13:45 Uhr -0500 16.09.2002, Kinsella, John R. 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
That's because the \ (backslash) is AppleScript's escape character.
If you want to include some special characters like " in a string,
you precede it with the escape character, to "escape" from its
special meaning. So in order to get a backslash in a string, you've
got to escape it itself.
Write "\\" and everything should be in order.
Set Applescript's text item delimiters to "\"" (at this point the script
checks out fine.)
Just let yourself be surprised by trying:
display dialog "\""
HTH,
Helmut
--
_______________________________________________
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.