Re: Text Item Delimiter Problem
Re: Text Item Delimiter Problem
- Subject: Re: Text Item Delimiter Problem
- From: "Gary (Lists)" <email@hidden>
- Date: Wed, 12 Apr 2006 11:37:54 -0400
"Adam Bell" wrote:
> When the text of an AppleScript text item delimiter is or contains `, or ',
> the text is not delimited there. Escaping it (\`, or \') doesn't work either
> and it doesn't seem to matter whether it's unicode text or ASCII. How do I
> specify a text item delimiter that must include single quote(s), curly quotes,
> or a back quote (lower case ~)? Must it be entered by ASCII number, for
> example?
These both work, OMM.
set s to "what's this doin' to me?"
set the text item delimiters to "'"
set o_ to the text items of s
--> {"what", "s this doin", " to me?"}
set s to "what`s this doin` to me?"
set the text item delimiters to "`"
set o_ to the text items of s
--> {"what", "s this doin", " to me?"}
Adam, from your statement
> When the text of an AppleScript text item delimiter is or contains `, or '
it seems that you may be trying to use multiple characters in your delimiter
(the "or contains" suggests this.)
I publicly insisted just last year that AppleScript was handling multiple
character delimiters just fine...only to realize later (with some chagrin)
that I was relying on an external tool.
Is it possible that you, also, have become accustomed to thinking that
multiple-character delimiters should work and now don't have the requisite
external resources?
--
Gary
...cover you (os)ass...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden