【发布时间】:2016-08-16 19:53:06
【问题描述】:
我已经研究出(在网上找到)如何将单个项目从 Finder 附加到新的 Outlook 邮件中。我已经大量使用这种格式 - 更改了“selecteditem”和选择以及其他一些更重大的更改 - 但我无法弄清楚如何一次将多个项目附加到新的 Outlook 消息中。
只有一个项目附加到每条新的 Outlook 消息。 Automator 中没有 Outlook Automator 选项 - 我认为 Office 365 取消了它们。
我目前的脚本如下:
tell application "Finder" to set selectedItem to item 1 of (get selection)
set theAttachment to selectedItem as alias
set fileName to name of selectedItem
tell application "Microsoft Outlook"
set newMessage to make new outgoing message with properties {subject:fileName}
tell newMessage
make new attachment with properties {file:theAttachment}
end tell
open newMessage
get newMessage
end tell
我目前正在尝试在 Automator 中使用此脚本作为服务,因此我有一个右键单击选项可以将文件直接发送到新的 Outlook 邮件。目前是这样设置的。
【问题讨论】:
-
指令“新建附件”只添加一个文件。对于要添加 x 个文件的每个文件,必须在循环中使用它。将您选择的文件设置在一个列表中,并对该列表的每个项目重复。
-
知道如何调整上述脚本来做到这一点吗?
标签: macos outlook applescript ms-office automator