将Outlook 2011消息传递给AppleScript

时间:2014-03-22 14:00:38

标签: macos outlook applescript

我是AppleScript的新手,我正在尝试根据Outlook在传入电子邮件的过滤条件满足时运行AppleScript的能力自动执行部分工作流程。

我已经解决了AppleScript的其余部分问题,但我被困在一部分上。如何将符合过滤条件(并且可能是一组传入消息的一部分)的消息传递给AppleScript,以便我可以对其进行操作?

1 个答案:

答案 0 :(得分:1)

您可以通过current messages

获取消息

e.g,

tell application "Microsoft Outlook"

    set msgs to current messages

    repeat with m in msgs
        set subj to the subject of m
        say subj
        display dialog subj giving up after 3
    end repeat

end tell
相关问题