I have a script that makes a new e-mail message and asks to either delete or send the message.
Works fine, but when I use the Delete option, I am asked if I want to save the message as a draft.
How can I avoid that request?
Thanks
tell application "Mail"
set newMail to make new outgoing message
set visible of newMail to true
tell newMail
make new to recipient at end of to recipients with properties {address:"someAddress@yahoo.com"}
set subject to "Hello"
set content to "Hi"
end tell
set uiValue to button returned of (display dialog "Delete or Send" buttons {"Delete", "Send", "nothing"} default button "Delete")
if uiValue = "Delete" then
delete newMail
else if uiValue = "Send" then
send newMail
end if
end tell