>I've just joined the list (digest version so I won't receive replies >immediately) but I've been using Emailer from the beginning. I'm now >using 2.0v3 on a Beige G3/233 running OS9.2.2.
Welcome >I couldn't find any list archives so I'm very much in the dark regarding >the number of list members but I suspect it's not many nowadays! I think Dave's last count was something in the 130's (stick around, you'll know who Dave is) >I felt it ought to be possible to write an Applescript that would search >the incoming message for the customer's email address which appears on a >line of its own in the format: > >Email : [EMAIL PROTECTED] > >This could then be used in generating an automatic reply to the customer. Yup, this should be possible. >However, my knowledge of Applescript is very basic. I could probably copy >existing scripts and do most of the job but I don't see how to grab the >email address easily from the message body text. Emailer contains no >string handling commands in its library so I guess the message would have >to be either saved to file or pasted into a different application first? Vric is probably your best hope for help (stick around, you'll learn who he is as well), he seems to be an AppleScript guru (or at least knows way more then me, and I like to call anyone that knows more then me a guru... makes me feel like I'm not a total idiot). BUT, Emailer does have at least one string command. You can get the entire text of the message. Once you have that, you can use either AppleScripts native commands, or other OSAX to parse the text down to what you want. If the email address always comes in the same way, it shouldn't be too much effort to locate and strip it out. Based on your example, I would search for a line that contains "Email : " and then break the line in half at the ":" taking the right half and trimming it for blank spaces. That should leave you with the email address. A quick test to make sure it as one "@" and at least one "." should validate that you indeed have an email address (or at least something that looks like one). This does of course depend on the email address being listed in the email in a predictable pattern. My guess is, if it comes from an automated system, its predictable. -chris <http://www.mythtech.net> ___________________________________________________________________________ To unsubscribe send a mail message with a SUBJECT line of "unsubscribe" to <[EMAIL PROTECTED]> or <[EMAIL PROTECTED]>

