Recycling Email Drafts in Mail
Recycling Email Drafts in Mail
- Subject: Recycling Email Drafts in Mail
- From: James Cook <email@hidden>
- Date: Thu, 26 Mar 2009 13:56:41 -0400
I've got an AppleScript for Eudora that works for sending pre-written
email to a recipient from my database.Is there a way to do this with
Apple Mail? I want to save a Draft to use whenever, so the original
needs to remain in Drafts, but I want to open, address and send a copy.
Because I have multiple accounts, I can't seem to save into the Drafts
folder itself. Mail has a separate folder for each within Drafts. In
my case I'm trying to utilize a message in Drafts:Gmail
Apple's Mail.app has Send Again available in the Message menu, but I
found nothing in its library to indicate I can Send Again via
AppleScript.
Here's what works in Eudora. Rcpnt is assigned the value of the Email
Address from my database. Fdbck returns with the AppleScript Result
showing either the subject on a successful send, or the error on a
failure.
set Rcpnt to $«Email Address»$
tell application "Eudora"
try
send again last message of mailbox "Templates"
set Fdbck to subject of message 0
set field "to" of message 0 to Rcpnt
queue message 0
set Fdbck to Fdbck
end try
end tell
Thanks in advance for any and all suggestions.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden