【发布时间】:2016-04-19 19:20:06
【问题描述】:
我一直在尝试编写一些 Applescript 来转发消息并编辑主题。目前我正在处理收件人和主题行的转发和填充。
当我运行它时,它给了我错误:
"Mail got an error: Can't set subject of item to any."
代码如下:
tell application "Mail"
set theSelection to selection
set theForwardedMessage to forward (item 1 of theSelection) with opening window
tell theForwardedMessage
make new to recipient with properties {address:"address@blahblah.com"}
set subject to "blahblahblah"
end tell
end tell
我不明白为什么它告诉我它不能编辑主题行。有什么指点吗?
【问题讨论】:
标签: email applescript osx-elcapitan