4
我遍历iCal中的所有事件以仅获取今天的事件,但我不认为这是有效的。有没有一种功能/方法只能获得今天的活动?从iCal获取今日活动与AppleScript
tell application "iCal"
tell calendar "Lotus Notes"
set today to (current date)
set this_year to year of today
set this_month to month of today
set this_day to day of today
repeat with c in every event
set d to start date of c
set the_year to year of d
set the_month to month of d
set the_day to day of d
if (the_year = this_year) and (the_month = this_month) and (the_day = this_day) then
show c
end if
end repeat
end tell
end tell
这不会得到任何重复事件,上早日首先定义,今天发生的。看起来像一个棘手的问题,看着其他答案,人们似乎在使用http://hasseg.org/icalBuddy/ – Von 2011-10-06 14:06:51