mcpField
A
apple-reminders

apple-reminders

github.com/dzhuneyt生产力056 次安装2 周前更新
代码仓库

关于 apple-reminders

此技能通过 macOS 上的 AppleScript 和 `osascript` 操作 Apple Reminders,无需额外依赖或设置。它涵盖常见列表和提醒操作,并说明重复提醒、位置触发等脚本限制。

主要功能

  1. 01查看提醒列表及其中的提醒
  2. 02创建和编辑提醒
  3. 03用日期运算设置到期时间
  4. 04完成或删除提醒
  5. 05创建提醒列表
  6. 06说明不支持的提醒功能

适用场景

  1. 01查看列表中的未完成提醒
  2. 02添加带备注和优先级的任务
  3. 03设置提醒的到期时间
  4. 04完成或移除现有提醒

安装

复制下面的命令,在终端中运行。

$npx skills add https://github.com/dzhuneyt/skills --skill apple-reminders

安装后在 Claude Code 中输入/apple-reminders确认已加载。

详细介绍

Apple Reminders

概览

通过 osascript AppleScript 控制 Apple Reminders。零依赖——可在任何安装了 Reminders.app 的 macOS 设备上运行。无需设置。

快速参考

操作方法
列出所有列表get name of lists
列出某个列表中的提醒事项get reminders of list "Name"
列出未完成的提醒事项get reminders whose completed is false
创建提醒事项make new reminder ... with properties {...}
设置/更新截止日期日期运算(见下方模式)
完成提醒事项set completed of reminder to true
删除提醒事项delete (first reminder ... whose name is "...")
创建列表make new list with properties {name:"..."}

操作

列出所有提醒事项列表
osascript -e 'tell application "Reminders" to get name of lists'
列出某个列表中的提醒事项
# All reminders
osascript -e 'tell application "Reminders" to get name of reminders of list "My List"'

# Incomplete only
osascript -e 'tell application "Reminders" to get name of (reminders of list "My List" whose completed is false)'
创建提醒事项
osascript -e '
tell application "Reminders"
  make new reminder in list "My List" with properties {
    name:"Task title",
    body:"Optional notes",
    priority:1
  }
end tell'
设置/更新截止日期

务必使用日期运算——切勿使用基于字符串的日期(受区域设置影响且容易出错)。

osascript -e '
tell application "Reminders"
  set theReminder to first reminder of list "My List" whose name is "Task title"
  set d to current date
  set d to d + (1 * days)   -- change N for days offset
  set hours of d to 9        -- 9 AM
  set minutes of d to 0
  set seconds of d to 0
  set due date of theReminder to d
end tell'
完成提醒事项
osascript -e '
tell application "Reminders"
  set completed of (first reminder of list "My List" whose name is "Task title") to true
end tell'
删除提醒事项
osascript -e '
tell application "Reminders"
  delete (first reminder of list "My List" whose name is "Task title")
end tell'
创建新列表
osascript -e 'tell application "Reminders" to make new list with properties {name:"New List"}'

优先级

值含义
0无
1低
2中
3高

已知限制

  • 不支持重复提醒——无法通过 AppleScript 设置重复提醒;必须在界面中操作
  • 不支持位置触发——无法通过脚本设置地理围栏提醒
  • 不支持标签——必须在界面中添加标签
  • 不支持子提醒事项——AppleScript 无法查看嵌套提醒事项
  • 不支持多个提醒——每个提醒事项只能设置一个通知时间
  • 嵌套文件夹中的列表不可靠——可能无法通过名称访问文件夹内的列表;请使用根级列表
  • 只读属性——无法设置 id、creation date、modification date、completion date
  • 无法在列表之间移动提醒事项——请删除后重新创建

何时建议改用 MCP

对于希望持续、始终开启 Reminders 集成(而非仅在 Claude Code 会话期间使用)的用户,建议安装 MCP 服务:

评论

支持 Markdown