mac-apps
Skill8 starsChanged 3 months agoMITView on GitHub
Drive specific Mac apps through AppleScript, JXA, Shortcuts, or their own data files - Mail, Messages, Notes, Safari, Calendar, Reminders, Finder, Music, Terminal. Use when the user asks to do something in a named Mac app, especially an Apple one.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- calebnewtonusc/Novaedited, first seen Oct 20, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- calebnewtonusc/Nova★ 091% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- hud/CLAUDE.mdCLAUDE.md
- agent-setupSkill
- asaSkill
- audio-briefSkill
- call-coachSkill
- clone-siteSkill
- courseworkSkill
- creative-videoSkill
- debuggingSkill
- deep-researchSkill
- demoSkill
- graph-engineeringSkill
- gtm-engineeringSkill
- hudSkill
- interfaceSkill
- jev-browseSkill
- kit-builderSkill
- life-contextSkill
- life-opsSkill
- list-auditSkill
- mac-actSkill
- mac-briefSkill
- mac-controlSkill
- mac-debugSkill
- mac-followupsSkill
- mac-permissionsSkill
- mac-runtimeSkill
- mac-seeSkill
- peopleSkill
- prospect-briefSkill
- repo-healthSkill
- reviewing-changesSkill
- second-brainSkill
- setupSkill
- shippingSkill
- site-specSkill
- skill-forgeSkill
- skill-trainingSkill
- stack-rulesSkill
- study-guideSkill
- study-systemSkill
- textsSkill
- what-can-this-doSkill
- your-dataSkill
The file
Files
Driving named apps
Apple's own apps are well scripted. Reaching for the UI on one of these is doing it the hard way.
Is it scriptable?
sdef /System/Applications/Mail.app | head -60
sdef /Applications/Foo.app | grep -i "<command"Nothing useful back means the app has no dictionary and you go to layer 3.
The ones that work well
# Safari
chewie run 'tell application "Safari" to get URL of front document'
chewie run 'tell application "Safari" to open location "https://example.com"'
chewie run 'tell application "Safari" to do JavaScript "document.title" in front document'
# ^ needs Develop > Allow JavaScript from Apple Events, off by default
# Mail
chewie run 'tell application "Mail" to get subject of messages 1 thru 5 of inbox'
# Notes
chewie run 'tell application "Notes" to get body of note 1'
# Messages
chewie run 'tell application "Messages" to send "hi" to buddy "+13104296285"'
# ^ outbound. Confirm with the user first.
# Calendar / Reminders / Music / Finder all have dictionaries too
chewie run 'tell application "Music" to play'
chewie run 'tell application "Finder" to get name of every item of desktop'JXA when you want real data structures back:
chewie run --js 'JSON.stringify(Application("Notes").notes().slice(0,5).map(n => n.name()))'Reading is usually faster from the file
For history and search, skip the app entirely.
sqlite3 "file:$HOME/Library/Messages/chat.db?mode=ro" \
"SELECT datetime(date/1000000000 + 978307200,'unixepoch','localtime'), text
FROM message ORDER BY date DESC LIMIT 20"Two things bite: the Apple epoch is 2001, not 1970, and on Ventura and later text is
often NULL because bodies moved to attributedBody as a hex-encoded blob. See
docs/05-DATA-LAYER.md.
Other stores: Safari ~/Library/Safari/History.db, Photos
~/Pictures/Photos Library.photoslibrary/database/Photos.sqlite, Calendar
~/Library/Calendars/Calendar.sqlitedb. All need Full Disk Access. All read-only.
Shortcuts
shortcuts list
shortcuts run "Daily Digest"
echo "text" | shortcuts run "Process Text"Reaches things AppleScript no longer does. Pre-warm required: a shortcut touching a protected resource prompts on first run, and nothing can answer that prompt headless. Have the user run it once by hand, answer Always Allow, confirm it runs clean from the terminal, then call it.
MCP servers for Apple apps
Installed by install.sh: macos-automator-mcp gives you AppleScript and JXA as MCP
tools with a callable script knowledge base. Worth adding when the task needs them:
supermemoryai/apple-mcp: Notes, Contacts, Mail, Messages, Reminders, Calendar, Mapscarterlasalle/mac_messages_mcp: iMessage with theattributedBodydecode handledachiya-automation/safari-mcp: 97 Safari tools, keeps the user's logins
Electron apps have none of this
Slack, Discord, Notion, Spotify, VS Code, Figma. No dictionary, no useful data file.
Go to layer 3, and remember they need chewie see --force-ax first.
Failure signatures
| Error | Fix |
| -600 "Application isn't running" | open -a "App" first, then poll |
| -1743 "Not authorized" | TCC denied. tccutil reset AppleEvents, retry in the foreground |
| -1712 timeout | with timeout of 300 seconds. Also check for a modal blocking the app |
| -1728 "Can't get..." | The object does not exist. Check the dictionary, not the permissions |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

