问题描述
我是Apple脚本的新手,我试图从文件夹中复制两个图像并粘贴到Outlook邮件正文中,以下是到目前为止我编写的用于撰写邮件的代码,我需要在粘贴两个图像时需要帮助邮件正文。
tell application "Microsoft Outlook"
activate
set theSubject to "Subject"
set theContent to "This is my content"
set theAttachmentFile to "XXXXX"
set sendToAddress to "abc"
set msg to make new outgoing message with properties {subject:theSubject,content:theContent} -> I'm missing something here
with properties {file:theAttachmentFile}
open msg
end tell
解决方法
以防万一有人在为这个问题而苦恼。我想回答我的实现。
以html格式编写邮件正文内容,并使用img标签在邮件正文中插入图片。