名称: calctl
描述: 通过 icalBuddy + AppleScript CLI 管理 Apple 日历事件
使用 icalBuddy(快速读取)和 AppleScript(写入)从命令行管理 Apple 日历。
要求: brew install ical-buddy
| 命令 | 描述 |
|---|---|
calctl calendars |
列出所有日历 |
calctl show [filter] |
显示事件(今日、明日、本周、YYYY-MM-DD) |
calctl add <title> |
创建新事件 |
calctl search <query> |
按标题搜索事件(未来 30 天内) |
# 列出日历
calctl calendars
# 显示今日事件
calctl show today
# 显示本周事件
calctl show week
# 显示特定日历的事件
calctl show week --calendar Work
# 显示特定日期的事件
calctl show 2026-01-25
# 添加事件
calctl add "与 John 的会议" --date 2026-01-22 --time 14:00
# 添加事件到特定日历
calctl add "团队站会" --calendar Work --date 2026-01-22 --time 09:00 --end 09:30
# 添加全天事件
calctl add "假期" --date 2026-01-25 --all-day
# 添加带备注的事件
calctl add "项目评审" --date 2026-01-22 --time 15:00 --notes "带上季度报告"
# 搜索事件
calctl search "会议"
add 命令选项| 选项 | 描述 | 默认值 |
|---|---|---|
-c, --calendar <name> |
添加事件的日历 | Privat |
-d, --date <YYYY-MM-DD> |
事件日期 | 今日 |
-t, --time <HH:MM> |
开始时间 | 09:00 |
-e, --end <HH:MM> |
结束时间 | 开始后 1 小时 |
-n, --notes <text> |
事件备注 | 无 |
--all-day |
创建全天事件 | false |
本系统常见日历:
- Privat(个人)
- Work(工作)
- Familien Kalender(家庭日历)
- rainbat solutions GmbH
- TimeTrack