Hi,
I’ve got a bunch of drafts that I’d like to export to the Apple Notes app. I have the “Create note in Notes” action and associated Shortcut. However, now that Monterey supports it, I’d like to convert the drafts tags to Apple Notes tags by pasting them at the bottom with the “#” mark to identify them as tags. Anybody have any clue how to do this? I’d be grateful.
Thanks!
It is trivial to add Drafts tags as hashtags when exporting. In fact there’s a [[hashtags]]
template tag that can be used in Drafts actions to include tags in #hashtag
format (more on templates).
That said, this won’t help you to tag items in Apple Notes. Best as I have been able to tell from testing in the new release of Notes, it only recognizes and tags a note if the #hashtag
is typed into the note. If you paste in text with tags, or use the Shortcuts or AppleScript methods to set the content of a note, it ignores those tags. They appear as text, but it does not actually treat them as tags.
Apple would have to update Notes to support tags better to make this useful.
Urgh. Infuriatingly Apple. Thanks.
Very unfortunately - as of today, under macOS Sequoia 15.5 (24F74) - the bug related to tags “to be typed in, in order to be recognized as tags by Apple Notes”, still exists.
There are the “Add Tags to Note” and “Create Tag” shortcut action steps. This isn’t a workflow I work with (Drafts —» Notes), but if I did, I might send an array of tags to Shortcuts with the draft, then loop through the tags using Create New and Add Tags to Note for each. There’s probably a more elegant way, but as far as I can see, you can’t add a tag that doesn’t yet exist, and Shortcuts doesn’t appear to provide a way to list existing tags…
Thank you. I just discovered that ‘shortcuts’ can indeed be invoked from the command line. Therefore it is conceivable to integrate them into a bash script (calling Apple Script portions by osascript, and thus calling Shortcuts by ‘shortcuts run “My Shortcut Name” -I “input tag(s)”).