Applescript:Outlook:生成新消息时更改发件人

时间:2018-06-19 13:35:52

标签: outlook applescript

我尝试使用Applescript自动生成Outlook消息,并希望将发件人更改为我的代表帐户之一。

此刻,我的代码如下:

tell application "Microsoft Outlook"
        set newMessage to make new outgoing message with properties {subject:myFirma, content:mailText}
        set sendToAddress to "test@test.de"
        make new recipient at newMessage with properties {email address:{address:item 1 in i}}

        tell newMessage
            make new attachment with properties {file:theAttachment}
        end tell
        open newMessage
    end tell

0 个答案:

没有答案