【问题标题】:AppleScript to copy two image from a folder and paste into outlook mail bodyAppleScript 从文件夹中复制两个图像并粘贴到 Outlook 邮件正文中
【发布时间】: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


【解决方案1】:

因此,如果有人遇到同样的问题。我想回答一下我实现了什么。

以html格式撰写您的邮件正文内容并使用img标签在您的邮件正文中插入图像。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-07
    • 1970-01-01
    • 2020-01-12
    相关资源
    最近更新 更多