如何使用AppleScript打开新电子邮件,设置为;致:“&引用;主题:“;,附加一个文件?

如何使用AppleScript打开新电子邮件,设置为;致:“&引用;主题:“;,附加一个文件?,applescript,Applescript,为了帮助我的用户方便地报告问题,我希望创建尽可能多的电子邮件。最重要的是,我想附加一个文件(日志文件) 如何在AppleScript中执行此操作?谢谢,这就成功了。我不得不做一个小小的改变-在“告诉邮件内容”栏中“给收件人添加新邮件”不起作用。对此表示抱歉,感谢您的修复。现在还早,我正赶时间。 tell application "Mail" set theMessage to make new outgoing message with properties {visible:true,

为了帮助我的用户方便地报告问题,我希望创建尽可能多的电子邮件。最重要的是,我想附加一个文件(日志文件)


如何在AppleScript中执行此操作?

谢谢,这就成功了。我不得不做一个小小的改变-在“告诉邮件内容”栏中“给收件人添加新邮件”不起作用。对此表示抱歉,感谢您的修复。现在还早,我正赶时间。
tell application "Mail"
    set theMessage to make new outgoing message with properties {visible:true, subject:"My Subject", content:"My Body"}
    tell theMessage
        make new to recipient at end of to recipients with properties {name:"Ben Waldie", address:"applescriptguru@mac.com"}
    end tell
    tell content of theMessage
        make new attachment with properties {file name:pathToFile} at after last paragraph
    end tell
end tell