Mail 9.0: AppleScript support for new messages fails

Originator:mikeyward
Number:rdar://22091989 Date Originated:31-Jul-2015 11:37 AM
Status:Open Resolved:
Product:Mail Product Version:Mail 9.0 (3073)
Classification:UI/Usability Reproducible:Always
 
Summary:
Attempts to create new messages in Mail via its AppleScript scripting bridge fail.

Steps to Reproduce:
1) Create a new Automator workflow
2) Add a single action from the Mail group: New Mail Message
3) Run the workflow

Expected Results:
Mail.app should become active and create a new mail message window.

Actual Results:
Mail.app does not respond at all, and Automator reports an error with the workflow: “-[SBProxyByClass setSender:]: object has not been added to a container yet; selector not recognized”

Notes:

Mail.app also fails to respond if an actual AppleScript is used, such as this one:

tell application "Mail"
	set t to make new outgoing message
	set visible of t to true
	activate
end tell

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!