PDA

View Full Version : schedule a delivery in mail




I'm a Mac
Apr 17, 2008, 07:07 PM
I was wondering if it was possible to schedule a delivery in an email- I download the mail scripts applications, but I wanted to change some things, so I was wondering if there was a basic applescript that lets me schedule an email.



lee1210
Apr 17, 2008, 11:52 PM
This should do it:

tell application "Mail"
activate
set newMessage to (make new outgoing message with properties {subject:"This is the subject", content:"Test content"})
tell newMessage
make new to recipient at beginning of to recipients ¬
with properties {address:"test@address.com"}
end tell
send newMessage

end tell

-Lee

HiRez
Apr 18, 2008, 12:28 AM
Do you mean schedule as in setup a mail to be sent ASAP, or schedule one for later delivery at a specific time/date? Two different things, but if the latter you could maybe script Calendar.app, one of the choices for alarm is to send an email. Or at a lower level, add a cron entry.

I'm a Mac
Apr 18, 2008, 07:53 AM
I mean schedule a future delivery