| name | notes_move_to_folder |
| description | Move a note (by exact title match) into a Notes folder (by exact
folder name). Pure AppleScript — no UI scripting, no flakiness.
The folder must already exist; create it with osascript or via the
Notes UI before calling this skill.
Why a skill (not raw shell osascript): models routinely emit the
wrong AppleScript syntax for `move`, hit "Can't make ... into type
specifier" errors, or move into the wrong account's folder. This
skill encapsulates the canonical pattern + cross-account search.
|
| command | ["sh","-c","NOTE=\"$1\"; FOLDER=\"$2\"\n[ -z \"$NOTE\" ] && { echo \"note title required\" >&2; exit 1; }\n[ -z \"$FOLDER\" ] && { echo \"folder name required\" >&2; exit 1; }\n\nosascript 2>&1 <<APPLE\ntell application \"Notes\"\n set theNote to missing value\n set targetFolder to missing value\n repeat with acct in accounts\n try\n set ms to (every note of acct whose name = \"$NOTE\")\n if (count of ms) > 0 then set theNote to item 1 of ms\n end try\n try\n set fs to (every folder of acct whose name = \"$FOLDER\")\n if (count of fs) > 0 then set targetFolder to item 1 of fs\n end try\n end repeat\n if theNote is missing value then\n return \"ERR: note '$NOTE' not found in any account\"\n end if\n if targetFolder is missing value then\n return \"ERR: folder '$FOLDER' not found in any account\"\n end if\n move theNote to targetFolder\n return \"moved '$NOTE' -> '$FOLDER'\"\nend tell\nAPPLE\n","_"] |
| args | ["{{note}}","{{folder}}"] |
| schema | {"note":{"type":"string","description":"Exact note title to move","required":true},"folder":{"type":"string","description":"Exact name of the destination folder","required":true}} |
| timeout | 30 |
notes_move_to_folder — move a Notes note into a folder
Pure AppleScript wrapper for the move <note> to <folder> pattern,
with cross-account search so it works regardless of whether the note
lives in iCloud, "On My Mac", or another account.
Examples
notes_move_to_folder note="KinBench Move 176" folder="kinbench-folder"
→ moved 'KinBench Move 176' -> 'kinbench-folder'
If the note or folder is missing, returns a clear ERR: line — the
caller should create the folder first via osascript or skip the move.