使用applescript查找下一个Outlook事件

And*_*ite 5 outlook applescript osx-mavericks

我想确定是否有即将在接下来的五分钟内开始的前景事件。

我有以下脚本:

set now to current date
set end_time to now + (5 * minutes)

tell application "Microsoft Outlook" 
    set number_of_events to count (every calendar event whose start time is greater than or equal to now and start time is less than end_time)
end tell
Run Code Online (Sandbox Code Playgroud)

它适用于大多数事件,但似乎忽略了重复发生的事件。任何想法如何包括这些?

小智 0

Applescript 无法很好地处理重复发生的事件。AFAIK 没有办法获取有关重复事件的当前实例的信息。唯一的方法是打破重复性并将其转换为独立事件。
此步骤是相关的并且可能有部分解决方案。