【发布时间】:2011-10-02 02:17:14
【问题描述】:
我想编写一个 AppleScript 来在 Apple 的 Mail.app 中设置当前外发邮件的发件人。
我试过了:
tell application "Mail" to set sender of front outgoing message to "<my email address>"
但我收到了错误消息 error "Mail got an error: Can’t set sender of item to any." number -10006 from sender of item to any,这对我来说没有意义。
当我尝试如下询问前面的传出消息时:
tell application "Mail" to get properties of front outgoing message
我得到{class:item} 作为回报,而不是像我期望的那样“传出消息”对象。
有什么想法吗?
【问题讨论】:
标签: macos applescript apple-mail