Sorting through e-mails
Sorting through e-mails
- Subject: Sorting through e-mails
- From: Richard 23 <email@hidden>
- Date: Tue, 20 Feb 2001 00:41:36 -0800
>
Greetings
>
I am having trouble with a certain applescript. I wanted to sort through a
>
list of emails and return the number of people who answered a question
>
right.
>
>
What I want to do is get a list of all the lines of an e-mail. Then the
>
second word would always be the information I wanted to know. Like this:
>
haircolor: black
>
skincolor: white
>
eyecolor: hazil
>
>
This paticular line of code is giving me trouble:
>
set AppleScript's text item delimeter to "" & return
>
>
It keeps giving me an error about "delimeter not defined." Am I spelling
>
delimeter wrong? I thought for sure that was how to do it. I guess I was
>
wrong. I'm running on Mac OS 9. But I don't think that has much to do with
>
it.
Probably not. Although there are special conditions (planet alignment,
mood ring, biofeedback related) where that really long term I hate to
type (A's tids) can be left in the paintbox.
Whot on earth am I talking about? Who knows? But I selected the sample
text from your message and ran the following one liner which might give
you some ideas.
{paragraphs, words, words of first paragraph} of (the clipboard)
--> {{" haircolor: black", " skincolor: white", " eyecolor: hazil",
""},
{"haircolor", "black", "skincolor", "white", "eyecolor", "hazil"},
{"haircolor", "black"}}
to trim up the paragraphs result:
text from first word to last word of paragraph 1 of (the clipboard)
text from word 1 to word -1 of first paragraph of (the clipboard)
--> "haircolor: black"
Yes there is more than one way to do it (TIMTOWTDI) tim-toady
R23