JXA .- 如何在 Outlook 中根据 ID 打开邮件
JXA .- How to open a mail based on ID in Outlook
我在一个简单的问题上绊倒了,但我无法全神贯注并让它发挥作用。
我正在尝试使用 JAX 根据邮件的 ID 在 Outlook 中打开邮件。我知道使用 AppleScript 非常简单:
tell application "Microsoft Outlook"
open message id msgID
activate
end tell
但我不知道如何在 Javascript 中转换它:
var outlook = Application("Microsoft Outlook");
outlook.includeStandardAdditions = true;
message = ???? <-- Don't know how to select the message with ID mID
message.open()
这是一个例子:
msgID = 76 // example
var outlook = Application("Microsoft Outlook");
outlook.messages.byId(msgID).open()
我在一个简单的问题上绊倒了,但我无法全神贯注并让它发挥作用。 我正在尝试使用 JAX 根据邮件的 ID 在 Outlook 中打开邮件。我知道使用 AppleScript 非常简单:
tell application "Microsoft Outlook"
open message id msgID
activate
end tell
但我不知道如何在 Javascript 中转换它:
var outlook = Application("Microsoft Outlook");
outlook.includeStandardAdditions = true;
message = ???? <-- Don't know how to select the message with ID mID
message.open()
这是一个例子:
msgID = 76 // example
var outlook = Application("Microsoft Outlook");
outlook.messages.byId(msgID).open()