AppleScript从文件夹复制两个图像并粘贴到Outlook邮件正文中

问题描述

我是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标签在邮件正文中插入图片。

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...