Re: Recycling Email Drafts in Mail
Re: Recycling Email Drafts in Mail
- Subject: Re: Recycling Email Drafts in Mail
- From: Bill Briggs <email@hidden>
- Date: Thu, 26 Mar 2009 22:49:48 -0300
At 1:56 PM -0400 3/26/09, James Cook wrote:
>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
I use Eudora and haven't scripted anything for Mail since first looking at it years ago, but... why do you care about crafting your new outbound message from a pre-written draft? Mail doesn't have stationary either, so why not just put the guts of your frequently sent message right in a script, and then have the script make a new outbound message when you need it. You're already putting in the To and Subject fields, so just add the body of the message as well. Or is there some reason that won't work for you?
- web
_______________________________________________
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