• 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: parsing text / get specific item
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >parsing text / get specific item (From: Christian Vinaa <email@hidden>)

  • Prev by Date: Re: setting default app for document
  • Next by Date: Re: setting default app for document
  • Previous by thread: parsing text / get specific item
  • Next by thread: Re: parsing text / get specific item
  • Index(es):
    • Date
    • Thread