how do you save drafts in Mail via Applescript?

I’ve got a script that creates a message in Mail as required. Sending it is no problem, but I need to have the script store the email somewhere so that it can be reviewed later, before sending.

Mail doesn’t do this when I try

set newMessage to make new outgoing message with properties {mailbox:"Drafts", subject:"New License", content:theMsg & return & return}

and if I omit the mailbox property and say at the end

move newMessage to mailbox "Drafts"


move newMessage to drafts mailbox

or any other permutation that I can come up with it complains and does nothing useful.

Is this stunningly obvious and I’ve missed it, or impossible and I didn’t get the memo?

Help gratefully received, and thanks to St Jude for favours I may receive…


Model: Powerbook G4 1.33
Browser: Safari 417.8
Operating System: Mac OS X (10.4)

Try something like this, Dan:

set theMsg to "This should work..."
tell application "Mail"
	set newMessage to make new outgoing message with properties {subject:"New License", content:theMsg & return & return}
	save newMessage
end tell

Oh Dear

I feel a bit thick…

Thanks Kai. A Lot.

You’re most welcome, Dan.

And please don’t feel bad. As with all these things, it’s only easy when you know the answer. :slight_smile: