从 Objective-C 打开 iCal 到特定的 CalEvent
10.6,仅限 Cocoa(无 Applescript)。我有一个 CalEvent,我想在 iCal 中打开它。如何?
我可以使用 NSWorkspace 使用以下符号的 URL 打开 iCal URL:“ical://”,但我找不到有关允许我指定特定 CalEVent 的 uid 的 URL 语法的文档。我尝试简单地将 UID 附加到“ical://”字符串的末尾,但这只打开了 iCal,它没有显示包含指定 uid 的事件的视图。
我认为日历框架中可能有一种从 CalEvent 打开 iCal 的方法,但没有找到这样的方法。
然后我检查了邮件的“待办事项”功能如何将 URL 存储回消息,它使用以下语法:
mailitem:4019BCA5-4226-410B-969A-AEBAC75C3AE8?type=todo&action=showparent
所以我尝试了它的变体,用我的事件的 uid 替换该 UUID 和“ical”或“calendaritem”等,但没有去。
有想法吗?
谢谢
10.6, Cocoa only (no Applescript). I have a CalEvent and I want to open it in iCal. How?
I can open iCal URLs with NSWorkspace using URLs of the notation: "ical://" but I can't find documentation on the syntax of the URL that would allow me to specify a specific CalEVent's uid. I tried simply appending the UID tot he end of the "ical://" string, but that only opened iCal, it didn't display a view containing the event with the uid specified.
I thought there might be a method for opening iCal from a CalEvent in the Calendar Framework, but no such method has been found.
I then examined how Mail's "To Do" feature stores a URL back to a message, it uses this syntax:
mailitem:4019BCA5-4226-410B-969A-AEBAC75C3AE8?type=todo&action=showparent
So I tried variations of that, substituing in my event's uid for that UUID and "ical" or "calendaritem" etc, but no go.
Ideas?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论