【问题标题】:Applescript for Outlook - mark messages as readApplescript for Outlook - 将邮件标记为已读
【发布时间】:2013-02-02 08:13:01
【问题描述】:

我正在寻找一个 Applescript 以在 Outlook 2011 for Mac 中将邮件标记为已读。

我无法确定要设置的正确属性。

【问题讨论】:

    标签: macos outlook applescript


    【解决方案1】:

    试试:

    tell application "Microsoft Outlook"
        set myMessages to selection
        repeat with aMessage in myMessages
            set aMessage's is read to true
        end repeat
    end tell
    

    【讨论】:

    • 在 Outlook 16.5 中,我不得不将行 set aMessage's is read to true 更改为 tell application "Microsoft Outlook" to set aMessage's is read to true。我不确定为什么第二个tell application... 是必要的,但没有它,我一直收到语法错误
    【解决方案2】:

    如果您想选择要标记为已读的消息,上述答案非常棒。但是在 Mac 上的 Outlook 将日历邀请中的“已删除”设置为“未读”...此版本将为您运行,并且可以设置为根据需要从 cron 执行此操作。

    tell application "Microsoft Outlook"
        repeat with afolder in deleted items
            set aMsg to (every message of afolder where its is read is not true)
            repeat with aMessage in aMsg
                set aMessage's is read to true
            end repeat
        end repeat
    end tell
    

    【讨论】:

      猜你喜欢
      • 2014-10-19
      • 2013-05-07
      • 1970-01-01
      • 2016-11-03
      • 2014-09-09
      • 1970-01-01
      • 2015-10-08
      • 2019-07-19
      • 2011-12-02
      相关资源
      最近更新 更多