我尝试使用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