// Name: Create Apple Note
// Shortcut: command option control a
import "@johnlindquist/kit"
import * as applescript from 'applescript';
function createAppleNoteScript(content: string) {
const title = 'Note created on ' + new Date().toLocaleDateString();
return `
tell application "Notes"
tell account "iCloud"
tell folder "Notes"
make new note with properties {name:"${title}", body:"${content}"}
end tell
end tell
end tell
`;
}