问题
I'd like to write an iCal plugin to help me cope with the need to put most events I create onto two calendars. Google is uncharacteristically less than helpful in providing programming resources for this purpose. Can someone here provide pointer(s)?
回答1:
You might consider using the Apple Events
scripting interface built into iCal
(and many other OS X apps), accessible via AppleScript or scripting bridges such as appscript. Use the Open Dictionary menu item in AppleScript Editor.app
(as it is now known in OS X 10.6) to view the complete iCal
scripting dictionary. There is a somewhat old but probably still useful introduction to iCal scripting here.
来源:https://stackoverflow.com/questions/3274009/how-to-get-started-writing-ical-plugins