由于我安装了 Sierra,我无法让以前工作的 AppleScript 工作。
我正在尝试创建带有签名的消息(在 Apple Mail 中),但不断收到错误消息。
我曾经像这样创建/填充消息:
set msg to make new outgoing message with properties {content:messageContent}
set message signature of msg to signature "X"
在 Sierra 之前,这很完美,现在我收到一条错误消息:Mail got an error: AppleEvent handler failed.
所以我尝试了几件事并最终(使用AppleScript词典):
set msg to make new outgoing message with properties {content:messageContent, message signature:signature "X"}
最终出现错误消息:Mail got an error: Can’t make class outgoing message.
谁能帮我解决这个问题?