# Apple Notes Debug Bundle

> Collect Apple Notes automation debug evidence for troubleshooting. Trigger: "apple notes debug".

- Skill: `jeremylongshore/apple-notes-debug-bundle` (Agent Skill)
- Install (CLI): `npx skillmds@latest add jeremylongshore/apple-notes-debug-bundle`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jeremylongshore/apple-notes-debug-bundle/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- License: MIT
- Author: jeremylongshore (https://skillmd.com/u/jeremylongshore)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/jeremylongshore/apple-notes-debug-bundle

---


# Apple Notes Debug Bundle

## Diagnostic Script
```bash
#!/bin/bash
echo "=== Apple Notes Debug Bundle $(date -Iseconds) ==="
echo "macOS: $(sw_vers -productVersion)"
echo "Notes.app running: $(pgrep -x Notes > /dev/null && echo Yes || echo No)"
echo "Accounts: $(osascript -l JavaScript -e "Application(\"Notes\").accounts().map(a => a.name()).join(\", \")" 2>/dev/null || echo "ERROR")"
echo "Note count: $(osascript -l JavaScript -e "Application(\"Notes\").defaultAccount.notes.length" 2>/dev/null || echo "ERROR")"
echo "Folder count: $(osascript -l JavaScript -e "Application(\"Notes\").defaultAccount.folders.length" 2>/dev/null || echo "ERROR")"
echo "TCC status: $(sqlite3 ~/Library/Application\ Support/com.apple.TCC/TCC.db "SELECT client,allowed FROM access WHERE service='kTCCServiceAppleEvents'" 2>/dev/null || echo "Cannot read TCC")"
echo "=== Done ==="
```

## Resources

- [Mac Automation Scripting Guide](https://developer.apple.com/library/archive/documentation/LanguagesUtilities/Conceptual/MacAutomationScriptingGuide/)
- [JXA Examples](https://jxa-examples.akjems.com/)


