AppleScript 贮库 - 清理Outlook的已删除文件夹
tags: macOS
, AppleScript
, Microsoft Outlook
tell application "Microsoft Outlook"
-- 这里是Exchange类型帐户哦
set topFolder to item 3 of mail folder of exchange account "Work"
set selectedMessages to messages of topFolder
repeat with theMessages in selectedMessages
permanently delete theMessages
end repeat
delay 0.25
clear recent recipients
end tell