• 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: what the heck - text manipulation script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what the heck - text manipulation script


  • Subject: Re: what the heck - text manipulation script
  • From: Michelle Steiner <email@hidden>
  • Date: Tue, 18 Jul 2006 10:25:18 -0700

On Jul 18, 2006, at 9:40 AM, Natalie Lambert wrote:

why isn't the script seeing the @ and period as the
part of the word with "St"?

Because non alphanumeric characters are not parts of words, with certain exceptions such as a dollar sign when followed by a number.


Assuming that the word you want extracted is always preceded by a tab and followed by a space, this will do what you want:

set x to "OCT 05	@St. Louis"
set text item delimiters to tab
set x to text item 2 of x
set text item delimiters to space
text item 1 of x

-- Michelle

--
Grandparents and grandchildren are natural allies.
They share the same enemies.

_______________________________________________
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


References: 
 >Re: what the heck - text manipulation script (From: Natalie Lambert <email@hidden>)

  • Prev by Date: Re: what the heck - text manipulation script
  • Next by Date: Re: getting the image file of a mounted disk image
  • Previous by thread: Re: what the heck - text manipulation script
  • Next by thread: Re: what the heck - text manipulation script
  • Index(es):
    • Date
    • Thread