我想知道在接下来的五分钟内是否会有一个展望事件。
我有以下脚本:
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
适用于大多数事件,但似乎忽略了重复发生的事件。任何想法如何包含这些?