开发者

how to add new event in ical, in TERMINAL?

开发者 https://www.devze.com 2023-03-11 21:30 出处:网络
how to use terminal to add event in ical without using other third party like icalbuddy?? someone had an idea in 2006, but it doesn\'t seem to work with leopard 10.6.7

how to use terminal to add event in ical without using other third party like icalbuddy?? someone had an idea in 2006, but it doesn't seem to work with leopard 10.6.7

osascript -e 'tell application "iCal" to make new event at end of calendar 1 with properties {start date:date "Sunday, March 5, 2006 1:02:00 PM", summary:"test event开发者_如何学C"}'

the above results in a bad syntax with the dates Any one know how to do it?


Probably your local date format differs from one used in example, that's can be the reason of error.

0

精彩评论

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