【发布时间】:2013-02-02 08:13:01
【问题描述】:
我正在寻找一个 Applescript 以在 Outlook 2011 for Mac 中将邮件标记为已读。
我无法确定要设置的正确属性。
【问题讨论】:
标签: macos outlook applescript
我正在寻找一个 Applescript 以在 Outlook 2011 for Mac 中将邮件标记为已读。
我无法确定要设置的正确属性。
【问题讨论】:
标签: macos outlook applescript
试试:
tell application "Microsoft Outlook"
set myMessages to selection
repeat with aMessage in myMessages
set aMessage's is read to true
end repeat
end tell
【讨论】:
set aMessage's is read to true 更改为 tell application "Microsoft Outlook" to set aMessage's is read to true。我不确定为什么第二个tell application... 是必要的,但没有它,我一直收到语法错误
如果您想选择要标记为已读的消息,上述答案非常棒。但是在 Mac 上的 Outlook 将日历邀请中的“已删除”设置为“未读”...此版本将为您运行,并且可以设置为根据需要从 cron 执行此操作。
tell application "Microsoft Outlook"
repeat with afolder in deleted items
set aMsg to (every message of afolder where its is read is not true)
repeat with aMessage in aMsg
set aMessage's is read to true
end repeat
end repeat
end tell
【讨论】: