Move note to archive with AppleScript


is there a way to move a note into the archive using AppleScript?


There is not. Drafts has limited AppleScript support.

It is possible with Shortcuts on macOS 12, or via URL schemes (which you can call from AppleScript).

I added a 2nd Script step with JavaScript and there it is not problem (just would have liked to do it all in one step):

// Drafts - Archive
// move draft into the Archive
draft.isArchived = true;

Not sure what you are doing overall, but if you are running an action from inside Drafts, actions have the option to automatically archive after success. Scripting should not be needed.

yes - thanks - found that option after I finished the script part - it’s my first day with Drafts… :wink:

1 Like