Minimize token usage and avoid fragile quoting by routing Apple Notes operations through bundled scripts.
echo '{"title":"Title","body":"Line 1\nLine 2","folder":"Notes"}' | {baseDir}/scripts/notes_post.sh
{baseDir}/scripts/notes_new.sh "Title" $'Body line 1\nBody line 2' "Notes"
{baseDir}/scripts/notes_list.sh "Notes"
{baseDir}/scripts/notes_search.sh "query" "Notes"
{baseDir}/scripts/notes_export.sh "query" "Notes" "/tmp" # interactive select then export
Wrote to Notes: . Editing existing notes is inherently more fragile:
memo notes -e (manual selection + editor).共 1 个版本