开发者

Applescript to get body of a message in Outlook 2011

开发者 https://www.devze.com 2023-03-19 05:02 出处:网络
I need to use applescript to process the body of an email during incoming. How can I get the body of an email when using Outlook开发者_运维问答 2011?

I need to use applescript to process the body of an email during incoming. How can I get the body of an email when using Outlook开发者_运维问答 2011?

I am totally new to Applescript.

Any tutorial for using Applescript with Outlook 2011 or starter code for this question would be greatly helpful.


set theText to string
tell application "Microsoft Outlook"
    set messages to selection
    repeat with this_message in messages
        set theText to content of this_message
    end repeat
end tell

Now theText has the contents of the message.

0

精彩评论

暂无评论...
验证码 换一张
取 消