【发布时间】:2015-10-20 02:03:24
【问题描述】:
我希望我的脚本遍历邮箱树并删除空邮箱:
tell application "Mail"
my cleanup(mailbox "Archives")
end tell
on cleanup(box)
tell application "Mail"
if (count of mailboxes of box) > 0 then
repeat with mbx in mailboxes of box
my cleanup(mbx)
end repeat
else
if (count of messages of box) = 0 then delete box
end if
end tell
end cleanup
“删除框”导致错误: 错误“邮件出现错误:无法获取邮箱“存档”的每个邮箱的项目 1 的每个邮箱的项目 1。”邮箱“档案”的每个邮箱的项目 1 的每个邮箱的项目 1 的编号 -1728
【问题讨论】:
标签: email applescript