Apple notes multi env setup
🧠The right skill, one API call. AI agent skills registry with token-efficient skill resolution. 5,000+ skills from 500+ top repos.
npx -y skills add ComeOnOliver/skillshub --skill apple-notes-multi-env-setupAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
What its author says it does
Copied from the file, not written here
Configure Apple Notes automation for multiple accounts and environments. Trigger: "apple notes multi account".
The file declares its own license as MIT. That is the author’s claim about this one file, and it is not the same thing as the license GitHub reports for the repository, which is listed with the other numbers below.
SKILL.md
1.8 KB, as published. Nobody here has run it
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 },
};