Applescript for Outlook - 将消息标记为已读

时间:2013-02-17 22:59:32

标签: macos outlook applescript

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

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

2 个答案:

答案 0 :(得分:7)

尝试:

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

答案 1 :(得分:1)

如果您想选择要标记为已读的消息,则上述答案很棒。但是使用Outlook on Mac将日历邀请设置为已删除状态"未阅读" ...此版本将为您运行,并且可以设置为根据您的需要经常从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