Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

I'm a Mac

macrumors 6502
Original poster
Nov 5, 2007
436
0
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

macrumors 68040
Jan 10, 2005
3,182
3
Dallas, TX
This should do it:

Code:
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

macrumors 603
Jan 6, 2004
6,265
2,630
Western US
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.