Skip to content

Add read-by-id command for Apple Notes #6

@vinitu

Description

@vinitu

Problem

The skill has an AppleScript snippet for reading by ID, but no reusable command. After search returns an Apple Notes id, agents should be able to read that note without reconstructing AppleScript manually.

Desired behavior

Add a command:

scripts/commands/read-by-id.sh 'x-coredata://057599AE-8804-461B-91E2-26B2A6EC0C4B/ICNote/p101'

Expected output:

NAME: 📅 #timeline / Kia Cerato Koup
CREATED: 2019-10-22 13:26
MODIFIED: 2026-01-09 19:07
ID: x-coredata://.../ICNote/p101
---TEXT---
...

Optional flags:

scripts/commands/read-by-id.sh --metadata-only 'x-coredata://...'
scripts/commands/read-by-id.sh --preview 500 'x-coredata://...'

Implementation notes

  • Use AppleScript first note whose id is ....
  • Escape the note ID safely.
  • Return non-zero with a clear error if not found.

Acceptance criteria

  • The command reads an existing note by ID.
  • The command fails clearly for an invalid ID.
  • SKILL.md documents using search result IDs with this command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions