Applescript刷新iCal中的所有日历

时间:2011-05-06 13:17:08

标签: applescript icalendar

我尝试使用此代码刷新iCal中的所有日历(Shift-Command-R),但它似乎不起作用。

tell application "iCal"
    launch
    reload calendars
end tell

Applescript命令是做什么的?

1 个答案:

答案 0 :(得分:3)

可能是该功能未内置于iCal字典中。我找不到您已经使用的reload calendars命令以外的任何内容。您只有其他选择是使用GUI scripting选择菜单项或按下组合键。

tell application "iCal" to activate
tell application "System Events"
    tell process "iCal"
        keystroke "r" using {command down, shift down}
    end tell
end tell
相关问题