Re: Newbie Text Manipulation
Re: Newbie Text Manipulation
- Subject: Re: Newbie Text Manipulation
- From: Chris Page <email@hidden>
- Date: Tue, 22 Jun 2004 02:10:14 -0700
On Jun 22, 2004, at 01:18, John Clark wrote:
I have a list of names {"john smith", "dave geek", "freddy kruger"} etc
How can extract the first and second names of each.
set names to {"john smith", "dave geek", "freddy kruger"}
repeat with name in names
log (words of name)
log (first word of name)
log (last word of name)
end repeat
--
Chris Page - Software Wrangler - Dylan Pundit
An ASCII character walks into a bar. Bartender asks, "What'll you
have?" ASCII character says, "Give me a double." Bartender asks,
"Having a bad day?" ASCII character says, "Yeah, I have a parity
error." Bartender says, "Hmmm. I thought you looked a bit off."
_______________________________________________
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.