macOS AppleScript Fallback (Reminders / Notes / Calendar / iMessage)
/install macos-applescript-fallback
macOS AppleScript Fallback
Use local shell + AppleScript for 4 tasks:
- Create reminder (Reminders)
- Create note (Notes)
- Create calendar event (Calendar)
- Send iMessage (Messages)
Prefer bundled scripts in scripts/ over ad-hoc inline AppleScript for consistency and compatibility.
Quick Start
Run these scripts directly:
# reminder
./scripts/create_reminder.sh "今晚8点吃晚饭" "2026-03-22 20:00:00"
# note (HTML body required)
./scripts/create_note.sh "\x3Ch1>武汉三日游\x3C/h1>\x3Cp>Day1 黄鹤楼...\x3C/p>" "iCloud"
# calendar
./scripts/create_calendar_event.sh "跑步" "个人" "2026-03-23 08:00:00" "2026-03-23 08:30:00"
# iMessage
./scripts/send_imessage.sh "[email protected]" "武汉下周末天气:..."
Workflow
Step 1: Clarify user intent + required fields
- Reminder: title, optional datetime
- Note: title/body content (render as HTML), optional account name
- Calendar: title, calendar name, start datetime, end datetime
- iMessage: recipient (phone or Apple ID), message text
If missing required fields, ask one concise follow-up question.
Step 2: Execute script (not plugin)
Always call the corresponding script in scripts/.
Why:
- avoids low-version parser differences
- centralizes fallback logic
- easier to debug and publish
Step 3: Confirm result to user
- If script returns an object/id or
sent, report success. - If no output but exit code is 0, still report success and suggest user verify in app UI.
Step 4: On failure, diagnose quickly
Use checks from references/troubleshooting.md.
Most frequent root causes:
- macOS Automation permission prompt not approved
- locale-dependent date parsing format
- Messages iMessage service/account not initialized
- target calendar/account name mismatch
Compatibility Rules (important)
- Avoid locale-fragile date strings where possible.
- Messages: resolve service by
service type = iMessage, not by hard-coded service name. - Calendar: if named calendar doesn’t exist, fallback to first calendar.
- Notes: if account
iCloudis missing, fallback to default account. - Notes body uses HTML (
\x3Ch1>,\x3Cp>) for stable rendering.
Output style to user
Keep concise and concrete:
- what was created/sent
- key details (time/target)
- returned ID (if any)
- one-line next step if verification needed
Bundled Resources
scripts/
create_reminder.sh- args:
\x3Ctitle> ["YYYY-MM-DD HH:MM:SS"]
- args:
create_note.sh- args:
\x3Chtml-body> [account-name]
- args:
create_calendar_event.sh- args:
\x3Ctitle> \x3Ccalendar-name> \x3Cstart> \x3Cend>
- args:
send_imessage.sh- args:
\x3Cbuddy(phone/appleid)> \x3Cmessage>
- args:
references/
troubleshooting.md- permission/automation prompts
- date parsing and locale issues
- Messages service/account init
- calendar/account fallback checks
- diagnostic commands
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install macos-applescript-fallback - 安装完成后,直接呼叫该 Skill 的名称或使用
/macos-applescript-fallback触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
macOS AppleScript Fallback (Reminders / Notes / Calendar / iMessage) 是什么?
Reliable macOS AppleScript fallback for creating Apple Reminders, Apple Notes, Apple Calendar events, and sending iMessage when direct tool/plugin routes are... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 277 次。
如何安装 macOS AppleScript Fallback (Reminders / Notes / Calendar / iMessage)?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install macos-applescript-fallback」即可一键安装,无需额外配置。
macOS AppleScript Fallback (Reminders / Notes / Calendar / iMessage) 是免费的吗?
是的,macOS AppleScript Fallback (Reminders / Notes / Calendar / iMessage) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
macOS AppleScript Fallback (Reminders / Notes / Calendar / iMessage) 支持哪些平台?
macOS AppleScript Fallback (Reminders / Notes / Calendar / iMessage) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 macOS AppleScript Fallback (Reminders / Notes / Calendar / iMessage)?
由 Fitzwilliam Zhang(@qy-zhang)开发并维护,当前版本 v1.0.0。