【发布时间】:2020-02-19 02:59:49
【问题描述】:
我已经让这个脚本在 Outlook 2011 for Mac 上运行良好,一切都在本地机器上。
我现在发现,经过这么多年,我的“规则”现在适用于 Apple 邮件。 规则的最后一部分是运行此脚本,然后将 HTML 电子邮件发送回发件人。 如果我将告诉应用程序“Microsoft Outlook”更改为告诉应用程序“邮件”,我会不断收到语法错误,它会突出显示“邮件文件夹”,告诉我这是错误的。 我难住了。 我正在将 Exchange 与 Mail 应用程序一起使用。不确定这是否是问题所在?
tell application "Microsoft Outlook"
set replyToMessage to message 1 of mail folder "•HOT FOLDER•"
if (replyToMessage is "") then
log ("NOTHING SELECTED!")
return
end if
set replyMessageSubj to subject of replyToMessage
set replyMessage to reply to replyToMessage without opening window
set contentHTML to "Vault:Users:vault:Documents:VAULT:Digital_Subscription_Reply:Digital_issue22.html" as alias
set contentHTML to read contentHTML
set the content of replyMessage to contentHTML
set the subject of replyMessage to "Vault Digital Issue - Issue 22"
send replyMessage
end tell
【问题讨论】:
标签: applescript