【发布时间】:2019-05-17 18:19:33
【问题描述】:
我正在尝试为我的 mac 使用 applescript 创建可用性日历。这将查询应用程序“日历”,获取当天的所有事件(理想情况下希望是多天),然后给我时间 between 以便我可以通过电子邮件发送、聊天等。
我已经能够找到事件,但无法找到事件的“倒数”时间。
set hours of theStartDate to 0
set minutes of theStartDate to 0
set seconds of theStartDate to 0
set theEndDate to theStartDate + (1 * days) - 1
tell application "Calendar"
tell calendar "GENERIC CALENDAR"
every event where its start date is greater than or equal to theStartDate and end date is less than or equal to theEndDate
end tell
end tell
【问题讨论】:
标签: applescript