Macos 如何使用Applescript在iCal中显示某个重复事件?

Macos 如何使用Applescript在iCal中显示某个重复事件?,macos,applescript,icalendar,Macos,Applescript,Icalendar,如何使用Applescript在iCal中显示某个重复事件 我当前使用的代码显示了该事件的首次发生,而不是我感兴趣的事件 tell application "iCal" tell calendar CALENDAR_NAME set theEvent to first event whose uid = SOME_UID end tell if theEvent is not null then show theEvent end if end tell 这很复杂。看看这个来自

如何使用Applescript在iCal中显示某个重复事件

我当前使用的代码显示了该事件的首次发生,而不是我感兴趣的事件

tell application "iCal"
tell calendar CALENDAR_NAME
    set theEvent to first event whose uid = SOME_UID
end tell
if theEvent is not null then
    show theEvent
end if
end tell

这很复杂。看看这个来自MacScripter的samplescript。这是一个令人印象深刻的剧本


谢谢你的链接!你曾经用过剧本吗?我从该行中的日期函数中得到一个错误:return isotToDatedo shell脚本TZ='&TZ&'/bin/date-r&eraTime&+%Y%m%dT%H%m%S。但是我猜脚本不会使iCal显示特定的重复事件。我的意图是在iCal中弹出某个事件…不-我不久前发现了该脚本并保留了一份副本,但我认为它不值得解析这些内容,以防苹果改变格式。