首页 > 解决方案 > Outlook 365 Mac,如何“核弹”邮件

问题描述

在 Outlook 2011 中,我有一个苹果脚本,它可以核对消息,意味着从 Outlook 的任何文件夹中永久删除它们。

我还为其分配了一个键盘快捷键,因此它使倾倒垃圾邮件和其他无趣的东西变得非常容易,而无需先将它们放入垃圾箱,然后再将它们从垃圾箱中删除。

该脚本在 365(mac 版)中不再有效,所以我正在寻找新的解决方案。有人有吗?

仅供参考,这是我的脚本:

tell application "Microsoft Outlook"
         set theMsgs to the current messages -- selected messages
         try
                  repeat with theMsg in theMsgs
                           permanently delete theMsg
                  end repeat
         on error errMsg number errNum
                  set theSubject to subject of theMsg
                  set theFolder to name of «class stor» of theMsg
                  beep
                  display dialog errMsg & return & return & errNum & return & return & "(Erroring on message: " & theSubject & " in " & theFolder & ")" with icon 2
         end try
end tell

标签: macosoutlookapplescriptoffice365

解决方案


我认为问题可能在于切换到“新 Outlook”外观(代码不起作用)或保持原来的 Outlook(它起作用)之间的区别。我目前正在使用 OS 10.15.7 和 16.46 版 Outlook 365 订阅,其中代码在旧 Outlook 外观下运行良好..

干杯


推荐阅读