- crates/mcp: stdio MCP client (initialize, tools/list with paging, tools/call), mcp.json - apps/extension: MV3 extension with pinned ID; tabs/open/snapshot(+diff)/click/fill/press/ scroll/extract/screenshot/wait_for/batch via chrome.scripting, tab group, glide cursor - crates/native-host: length-prefixed stdio relay to the app's unix socket; the app binary doubles as the host; manifests registered for Chrome, Brave, Edge, Arc, Vivaldi, Chromium - helper pdf: real Letter/A4 pages, multi-page - skills: pdf, documents, mac-apps, research, browser - .env.example Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
1.3 KiB
Markdown
21 lines
1.3 KiB
Markdown
---
|
|
name: mac-apps
|
|
description: Work with Mail, Calendar, Reminders, Notes, Finder, Music and Safari through their own scripting (osascript).
|
|
---
|
|
# Mac apps through their own scripting
|
|
|
|
Apps' own AppleScript dictionaries are fine to use; scripting clicks/keys through System
|
|
Events is not. Run with `osascript -e '…'` from bash. The first time, macOS asks them to
|
|
allow openclicky to control the app: say so if a call fails with "not authorized".
|
|
|
|
- **Reminders**: `tell application "Reminders" to make new reminder in list "Reminders" with properties {name:"Call Sam", due date:date "Friday 9:00"}`
|
|
- **Calendar** (read): `tell application "Calendar" to get summary of (events of calendar "Home" whose start date > (current date))`
|
|
Adding an event is a write to their calendar: fine when they asked for it.
|
|
- **Notes**: `tell application "Notes" to make new note at folder "Notes" with properties {name:"Title", body:"<h1>Title</h1><p>…</p>"}`
|
|
- **Mail**: drafting is fine (`make new outgoing message … with properties {visible:true}`);
|
|
sending needs their explicit yes to that exact text.
|
|
- **Finder**: prefer `device_*` tools; `open -R path` reveals a file.
|
|
- **Music**: `tell application "Music" to play playlist "…"`.
|
|
|
|
Dates in AppleScript follow their locale; build them with `current date` arithmetic when unsure.
|