提醒事项
用于 Apple Reminders 任务。当用户希望在 macOS 上获得一个 AI 友好的个人待办事项后端时,优先使用 rem 而非 Things/AppleScript。
工具
- CLI:
rem - 仓库:
https://github.com/BRO3886/rem - 安装:
GOBIN=/opt/homebrew/bin go install github.com/BRO3886/rem/cmd/rem@latest
rem 使用 EventKit 进行常规读写。它可能需要在“系统设置”>“隐私与安全性”>“提醒事项”中为调用应用授予“提醒事项”权限。
开始
检查访问权限:
rem lists -o json
rem today -o json
对于任何脚本化或验证的操作,使用 JSON:
rem list --incomplete -o json
rem search "flight" -o json
rem show <id> -o json
添加任务
默认方式:直接添加,然后通过搜索/显示进行验证。
rem add "Book LHR-SFO nonstop business flight" --due "tomorrow 9am" --priority high --notes "Nonstop only." -o json
rem search "LHR-SFO" -o json
有用选项:
--list "Name":目标列表--due "tomorrow 9am":截止日期/时间;支持自然语言--priority high|medium|low|none--notes "text"--url https://...--silent:不带通知的截止日期--remind-me 15m:截止时间前提醒--repeat daily|weekly|monthly|yearly
更新 / 完成 / 删除
首先找到 UUID,然后通过 ID 或唯一短 ID 进行操作:
rem search "flight" -o json
rem update <id> --name "New title" --due "friday 2pm" --notes "..." -o json
rem complete <id> -o json
rem delete <id> --force
写入后务必回读确认;不要仅依赖退出状态。
列表
rem lists --count -o json
rem list-mgmt create "Travel"
rem list-mgmt rename "Old" "New"
rem list-mgmt delete "Name" --force
约定
- 使用可执行的任务标题。将模糊的备注重写为下一个具体行动。
- 当用户明确希望原文捕捉时,保留用户措辞。
- 将多个无关操作分割成独立的提醒。
- 使用默认列表,除非用户指定了列表名称或类别明确。
- 不要在此添加日历事件;应使用日历工具。
- 对于当前日期计算,运行
date;不要猜测。
注意事项
- 仅限 macOS。
- 首次运行可能因“提醒事项访问被拒绝”而失败,直到调用应用获得“提醒事项”权限。
- 默认本地列表可能已本地化,例如
Erinnerungen。 rem搜索是普通查询搜索,不是 shell 正则表达式。--due会在截止时间创建提醒,除非传递了--silent。- 已标记的提醒在底层使用私有 ReminderKit,可能比普通 CRUD 对操作系统更脆弱。