【发布时间】:2015-06-19 17:39:46
【问题描述】:
有没有办法按主题删除邮件,我正在尝试制作一个 Applescript,从我的“已发送”邮箱中删除具有特定主题的邮件。我已经用测试邮件尝试了这些脚本:
tell application "Mail"
set theMails to every message of (every mailbox whose name is "Sent") whose subject is "Test Mail"
delete theMails
end tell
和:
tell application "Mail"
set theMails to {every message of inbox "Sent" whose subject is "Test Mail"}
delete theMails
end tell
两个脚本都不起作用,而且我不理解返回的错误,所以我找不到解决方案。求助!
【问题讨论】:
-
你能发布错误吗?
标签: email applescript