2

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.

the Reverend
  • 12,305
  • 10
  • 66
  • 121
  • Probably not the most helpful suggestion, but have you considered using `CalendarStore` instead? – Mike Abdullah Dec 20 '10 at 21:55
  • Thats what I'm using, but accessing the Calendar Store Framework does not automatically sync with iphone or other computers. When I open iCal, iCal updates the CalendarStore database with the truth (Sync services) – the Reverend Dec 21 '10 at 04:13

1 Answers1

0

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.

CoolBeans
  • 20,654
  • 10
  • 86
  • 101
  • Good suggestion, though I'm not able to initialize the sync function. The program does start and ends with exit code 0. I also tried giving it single number parameters but It didn't work. – the Reverend May 10 '11 at 15:30