• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Newbie Text Manipulation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Newbie Text Manipulation (From: John Clark <email@hidden>)

  • Prev by Date: Re: Active application - how to tell?
  • Next by Date: Re: Newbie Text Manipulation
  • Previous by thread: Newbie Text Manipulation
  • Next by thread: Re: Newbie Text Manipulation
  • Index(es):
    • Date
    • Thread