Re: Text Item Delimiter Problem
Re: Text Item Delimiter Problem
- Subject: Re: Text Item Delimiter Problem
- From: "Allen Watson" <email@hidden>
- Date: Wed, 12 Apr 2006 18:47:57 -0700
I'm not sure what external resources Gary is referring to, but for me, this works too:
set s to "this don't compute"
set od to AppleScript's text item delimiters
set AppleScript's text item delimiters to "don't"
set t to text items of s
set AppleScript's text item delimiters to od
return t
-- {"this "," compute"}
On 4/12/06, Gary (Lists)
<email@hidden> wrote:
"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 (
_______________________________________________
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