Apple Script to handle email

Cancelled Posted Aug 24, 2012 Paid on delivery
Cancelled Paid on delivery

I would like an Applescript to filter PayPal emails from the past week and send an email to each buyer. The steps would be this: 1 - Look in a given email inbox. 2 - Filter all emails from the past 7 days containing several keywords. 3 - Copy the sender email address and their name from the resulting emails. 4 - Send each of these senders an email from a given mail box containing a scripted message with their name as a variable. EG "Dear Mr Smith". PayPal emails come with different layouts so the buyers name must be found by looking for the text that appears after the words "Buyer" inside the email. I have the below script that sends email for me already: set theAccount to "myemail@[url removed, login to view]" set recipientName to "Mr Smith" set recipientAddress to "email@[url removed, login to view]" set theSubject to "Hello" set theContent to "I'am a bot!" tell application "Mail" ##Create the message set theMessage to make new outgoing message with properties {subject:theSubject, content:theContent, visible:true} ##Set a recipient tell theMessage make new to recipient with properties {name:recipientName, address:recipientAddress} ##Send the Message send end tell end tell

Chrome OS Linux Mac OS Software Architecture Translation UNIX Windows Desktop

Project ID: #2771247

About the project

Remote project Active Sep 15, 2012