macos - 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
解决方案
我认为问题可能在于切换到“新 Outlook”外观(代码不起作用)或保持原来的 Outlook(它起作用)之间的区别。我目前正在使用 OS 10.15.7 和 16.46 版 Outlook 365 订阅,其中代码在旧 Outlook 外观下运行良好..
干杯
推荐阅读
- java - 为什么 0.4 和 0.40 与 BigDecimal 不同?
- html - 如果导入了引导 CSS,Popper.js 不起作用?
- javascript - 循环并在 React 中
- elasticsearch - 禁用 Elasticsearch 搜索分析器
- javascript - jest .each 名称访问对象键
- python - 如何解决matplotlib?安装错误?
- css - 浏览器有时会使用错误的字体来渲染图标,导致文字乱码
- c++ - DirectX 数学中 XMMatrixDecompose() 的对面?
- laravel - Laravel:将模型/行从一个连接复制到另一个
- python-3.x - Pillow 将 png 转换为 8bit 位图