AppleScript sending of a message without making it visible is broken in Sierra

Originator:peter
Number:rdar://28539425 Date Originated:29-Sep-2016 04:01 PM
Status:Open Resolved:
Product:Mail Product Version:10.12
Classification:Usability Reproducible:Always
 
Summary:
This AppleScript worked prior to Sierra.  In Sierra, the message disappears and then appears in the Drafts folder and is not sent.

tell application "Mail"
	
	##Create the message
	set theMessage to make new outgoing message with properties {subject:"Hello", content:"There", visible:false}
	
	##Set a recipient
	tell theMessage
		make new to recipient with properties {name:"Steve", address:"steve@apple.com"}
		
		##Send the Message
		send
		
	end tell
end tell

Steps to Reproduce:


Expected Results:


Actual Results:


Version:
Mail Version 10.0 (3226) , macOS 10.12 16A320

Notes:


Configuration:


Attachments:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!