简体   繁体   中英

Passing an Outlook 2011 message to an AppleScript

I am an AppleScript newbie, and am trying to automate part of my workflow, based on Outlook's ability to run an AppleScript when filter conditions on incoming email are met.

I've worked out the rest of the AppleScript, but am stuck on one part. How do I pass the message that just came in which meets the filter conditions (and may be part of a group of incoming messages) to AppleScript so that I can operate on it?

You can get at the message via current messages

eg,

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM