Create new outgoing message with applescript in Microsoft Outlook

后端 未结 2 906
别那么骄傲
别那么骄傲 2021-01-12 05:28

I\'m trying to create a new outgoing message with Microsoft Outlook 2011 for mac, using AppleScript. The following example worked in 10.6.8:

<
2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-12 05:39

    tell application "Microsoft Outlook"
        set newMessage to make new outgoing message with properties {subject:"Hooray for automation"}
        make new recipient at newMessage with properties {email address:{name:"Jim Shank", address:"jim.shank@example.com"}}
        send newMessage
    end tell
    

    This way, it will automatically send it.

提交回复
热议问题