【发布时间】:2016-01-20 18:20:06
【问题描述】:
我正在编写一个小脚本来帮助我组织打开的邮件,并且我希望在 Mail.app 中获取每一个打开的外发邮件。
当我运行以下命令时,无论我打开了哪些传出消息,我都会返回 {}。
tell application "Mail"
get every outgoing message
end tell
当我跑步时
tell application "Mail"
make new outgoing message
get every outgoing message
end tell
我第一次收到{outgoing message id 44 of application "Mail"},第二次收到{outgoing message id 44 of application "Mail", outgoing message id 45 of application "Mail"},等等,因为它不断打开新的空白外发消息。
所以我看到的是它只能找到 由 Applescript 创建的消息?这是错误还是功能?有解决方法吗?
【问题讨论】:
标签: macos email scripting applescript