Open iCal for a specific CalEvent with Objective-C

10.6, Cocoa (without Applescript). I have CalEvent and I want to open it in iCal. How?

I can open iCal URLs using NSWorkspace using the notation URLs: "ical: //", but I cannot find the URL syntax documentation that would allow me to specify a specific CalEVent identifier. I tried just adding the UID to the end of the "ical: //" line, but only by opening iCal did it not display the view containing the event with the specified uid.

I thought there might be a method to open iCal from CalEvent in the Calendar Framework, but no such method was found.

Then I looked at how the Mail To To function saves the URL back to the message, it uses this syntax:

mailitem:4019BCA5-4226-410B-969A-AEBAC75C3AE8?type=todo&action=showparent

So, I tried options for this, replacing in my case the uid for this with the UUID and "ical" or "calendaritem", etc., but did not leave.

Ideas?

thank

+3
source share

Source: https://habr.com/ru/post/1782973/


All Articles