【发布时间】:2021-01-22 22:08:05
【问题描述】:
我是苹果脚本的新手,我正在尝试从文件夹中复制两个图像并粘贴到 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
【问题讨论】:
-
想想在现实生活中你会如何做到这一点。您必须使用某些应用程序(例如预览)打开图像文件,然后说“编辑”>“复制”。然后您将切换到 Outlook 编辑窗口并说“编辑”>“粘贴”。现在使用 AppleScript 执行此操作。
标签: ios macos applescript automator