> apple-notes-multi-env-setup

Configure Apple Notes automation for multiple accounts and environments. Trigger: "apple notes multi account".

fetch
$curl "https://skillshub.wtf/jeremylongshore/claude-code-plugins-plus-skills/apple-notes-multi-env-setup?format=md"
SKILL.mdapple-notes-multi-env-setup

Apple Notes Multi-Environment Setup

Multiple Account Configuration

// Apple Notes supports multiple accounts simultaneously
const Notes = Application("Notes");
const accounts = Notes.accounts();

// iCloud account (default)
const iCloud = accounts.find(a => a.name() === "iCloud");
// Gmail account
const gmail = accounts.find(a => a.name() === "Gmail");
// On My Mac (local only)
const local = accounts.find(a => a.name() === "On My Mac");

// Target specific account
function createNoteInAccount(accountName, title, body) {
  const account = Notes.accounts().find(a => a.name() === accountName);
  if (!account) throw new Error(`Account ${accountName} not found`);
  const note = Notes.Note({ name: title, body: body });
  account.folders[0].notes.push(note);
  return note.id();
}

Environment-Based Configuration

// src/config/environments.ts
interface NotesEnvConfig {
  accountName: string;
  defaultFolder: string;
  autoSync: boolean;
}

const ENVIRONMENTS: Record<string, NotesEnvConfig> = {
  personal: { accountName: "iCloud", defaultFolder: "Personal", autoSync: true },
  work: { accountName: "Gmail", defaultFolder: "Work", autoSync: true },
  local: { accountName: "On My Mac", defaultFolder: "Notes", autoSync: false },
};

Resources

┌ stats

installs/wk0
░░░░░░░░░░
github stars1.7K
██████████
first seenMar 23, 2026
└────────────

┌ repo

jeremylongshore/claude-code-plugins-plus-skills
by jeremylongshore
└────────────