0
我儘量讓來自終端的日曆事件添加事件,的AppleScript或終端:日曆
這裏是我的代碼
tell application "Calendar"
activate
tell calendar "Calendar"
set theCurrentDate to current date
make new event at end with properties {description:"Event Decription", summary:"Event Name", location:"Event Location", start date:theCurrentDate, end date:theCurrentDate + 510 * minutes}
end tell
reload calendars
end tell
它做的工作,但它很慢,而且需要打開日曆, 任何更快的方式來做到這一點,如果可能的話,無需打開日曆?
謝謝