问题
I have an application that syncs with iCal through the Calendar Store framework. I've noticed that I need to open iCal for the sync service to start and transfer events and tasks added with my application to my ipad and iphone. So.. my question, is there a way to start ical sync service without opening ical?
Thank you, Jose.
回答1:
I'm not positive that it will pick up the latest changes made to CalendarStore, but you should be able to trigger iCal's sync client by launching (NSWorkspace would do):
/System/Library/Frameworks/CalendarStore.framework/Resources/iCalExternalSync
This is the sync tool iCal uses to interact with Sync Services.
来源:https://stackoverflow.com/questions/4493934/how-to-invoke-ical-sync-service