Applescript发送带有签名的电子邮件

Applescript发送带有签名的电子邮件,applescript,Applescript,我正在尝试使用Apple脚本发送电子邮件。即使电子邮件发送到脚本中使用的地址,一切都正常。我的问题是我无法在电子邮件内容中添加签名。这是密码 tell application "Mail" set theSubject to "Subject if the testing email" -- the subject set theContent to "Body of the email goes here" -- the content set theAddress t

我正在尝试使用Apple脚本发送电子邮件。即使电子邮件发送到脚本中使用的地址,一切都正常。我的问题是我无法在电子邮件内容中添加签名。这是密码

tell application "Mail"
    set theSubject to "Subject if the testing email" -- the subject
    set theContent to "Body of the email goes here" -- the content
    set theAddress to "test123@gmail.com" -- the receiver address
    set theSignatureName to "Charu" -- the signature name


    set msg to make new outgoing message with properties {subject:theSubject, content:theContent, visible:true}
    tell msg to make new to recipient at end of every to recipient with properties {address:theAddress}

    set message signature of msg to signature theSignatureName
    send msg
end tell
当我尝试运行此程序时,会收到一个错误警报,提示邮件出错:AppleEvent处理程序失败。 我不知道如何设置签名


提前感谢

回顾以前的线程(如),似乎对于High Sierra及以上版本,使用
消息签名
添加签名不再有效。您最好的选择是将您的签名附加到
内容

谢谢,这就是我想在内容中包含签名的内容。我想一定有办法解决这个问题。谢谢你。