Re: what the heck - text manipulation script
Re: what the heck - text manipulation script
- Subject: Re: what the heck - text manipulation script
- From: Bill Briggs <email@hidden>
- Date: Tue, 18 Jul 2006 13:27:56 -0300
Title: Re: what the heck - text manipulation
script
At 5:59 PM +0200 7/18/06, Yvan KOENIG wrote:
Le 18 juil. 2006 à 17:46, John C. Welch
a écrit :
Try using "text item" instead
of "word"
--
Funny
set
x to "OCT 05 @St. Louis" as text
set
v to every text
item of
x
return v
returns:
{"O",
"C", "T", " ", "0",
"5", " ", " ", " ", "
", "@", "S", "t", ".", "
", "L", "o", "u", "i",
"s"}
It's not so funny. AppleScript's default text item
delimiters are {""}, so it treats each character in the
string as a text item. If someone is getting "words" out of
it, then they've changed the default text item delimiters to something
else; probably a space.
which would be
perfectly useless for Natalie Lambert
Indeed, unless she purposely changes the text item
delimiter to a space, but even with that the multiple spaces will have
to be accommodated.
- web
_______________________________________________
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