Re: parsing text / get specific item
Re: parsing text / get specific item
- Subject: Re: parsing text / get specific item
- From: Michelle Steiner <email@hidden>
- Date: Sun, 6 Mar 2005 14:17:11 -0700
On Mar 6, 2005, at 12:33 PM, Christian Vinaa wrote:
just FYI this is how its possible to find an emailaddress in some
text as long as the address is alone on a paragraph
That is assuming that there isn't any text that uses the at sign for
other purposes. (e.g., five dozen eggs @ $1.29 a dozen)
Also, the following can be greatly simplified:
repeat with y in theParas
set theChars to characters of y as list
repeat with x in theChars
if x as text is atSign then
copy y as text to end of emailList
end if
end repeat
end repeat
repeat with y in theParas
if position of atSign in y is not 0 then
copy y as text to end of emailList
end if
end repeat
-- Michelle
--
I love my country; I'm just ashamed (and afraid) of its current
administration.
_______________________________________________
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