Re: what the heck - text manipulation script
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