开发者

API for showing free/busy time in iCal (Apple people?)

开发者 https://www.devze.com 2022-12-09 14:40 出处:网络
In Snow Leopard there i开发者_如何学Cs a possibility to show free/busy time in iCal event. I\'ve searched the headers of CalStore.framework and couldn\'t find any property that describes this field. H

In Snow Leopard there i开发者_如何学Cs a possibility to show free/busy time in iCal event. I've searched the headers of CalStore.framework and couldn't find any property that describes this field. How can i retrieve free/busy property of calendar event?


iCal server has a method of retrieving free/busy, see: http://www.webdav.org/specs/rfc4791.html#rfc.section.7.8.4

However it's not trivial, you will have to essentially write your own API. You issue the server queries using NSURLRequest and NSURLConnection.


When I export an iCal 4 calendar I notice that "busy" is coded as "TRANSP:OPAQUE" and "free" as "TRANSP:TRANSPARENT". I have not been able to find something equivalent in the Applescript dictionary for iCal.


Pretty certain there is no public API in Calendar Store for this. You'll have to file a bug requesting it. Alternatives:

  • See if iCal has AppleScript support for the property
  • Use Sync Services which has access to the full iCal schema


As a hack could you request a CalDav file for the event and parse that?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号