Hello,
I have a web form on a website that emails me when people express interest in joining my mailing list.
My email client is Leopard's Mail.app
One of the actions it can perform on incoming messages is to run an AppleScript
I want to write an AppleScript that takes a given message, pulls the 'from' name and email address, and adds it to a particular recipient list in MBM.
So far, I *have* been able to add arbitrary names and addresses to MBM recipient lists using AppleScript.
The trouble is when I try to get the names and addresses from the incoming email. Either the scripts aren't firing, or AppleScript can't get the name/address that I want. I can't tell what's going on.
Has anyone tried this before? Do you have some sample code you'd be willing to share?
Here's what I used as a 'proof-of-concept'
I have a web form on a website that emails me when people express interest in joining my mailing list.
My email client is Leopard's Mail.app
One of the actions it can perform on incoming messages is to run an AppleScript
I want to write an AppleScript that takes a given message, pulls the 'from' name and email address, and adds it to a particular recipient list in MBM.
So far, I *have* been able to add arbitrary names and addresses to MBM recipient lists using AppleScript.
The trouble is when I try to get the names and addresses from the incoming email. Either the scripts aren't firing, or AppleScript can't get the name/address that I want. I can't tell what's going on.
Has anyone tried this before? Do you have some sample code you'd be willing to share?
Here's what I used as a 'proof-of-concept'
Code:
tell application "MaxBulk Mailer"
activate
SelectList "first_list"
AddRecipient "John;Smith;<[email protected]>"
SaveList
end tell