apple-notes-hello-world

Featured

Create, read, and list Apple Notes using JXA and AppleScript. Use when learning Notes automation, creating your first automated note, or testing read/write access to Apple Notes from scripts. Trigger: "apple notes hello world", "create apple note", "read apple notes", "apple notes example", "osascript notes".

AI & Automation 2,266 stars 315 forks Updated today MIT

Install

View on GitHub

Quality Score: 99/100

Stars 20%
100
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Apple Notes Hello World ## Overview Create, read, search, and delete Apple Notes using JXA (JavaScript for Automation) via `osascript`. All examples work from the command line on macOS. ## Prerequisites - Completed `apple-notes-install-auth` (permissions granted) - macOS with Notes.app ## Instructions ### Step 1: Create a Note ```bash # JXA: Create a note in the default folder osascript -l JavaScript -e ' const Notes = Application("Notes"); const defaultFolder = Notes.defaultAccount.folders[0]; const newNote = Notes.Note({ name: "Hello from Automation", body: "<h1>Hello World</h1><p>This note was created via JXA at " + new Date().toISOString() + "</p>" }); defaultFolder.notes.push(newNote); newNote.id(); ' # AppleScript equivalent: osascript -e ' tell application "Notes" tell account "iCloud" make new note at folder "Notes" with properties {name:"Hello AppleScript", body:"<p>Created via AppleScript</p>"} end tell end tell ' ``` ### Step 2: List All Notes ```bash # List notes with title and creation date osascript -l JavaScript -e ' const Notes = Application("Notes"); const notes = Notes.defaultAccount.notes(); notes.slice(0, 10).map(n => `${n.name()} | Created: ${n.creationDate().toISOString().split("T")[0]}` ).join("\n"); ' ``` ### Step 3: Read a Note's Content ```bash # Read note body (returns HTML) osascript -l JavaScript -e ' const Notes = Application("Notes"); const notes = Notes.defaultAccount.notes(); ...

Details

Author
jeremylongshore
Repository
jeremylongshore/claude-code-plugins-plus-skills
Created
7 months ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category