I keep a weekly list of links in Drafts. I’m trying to create a share-sheet Shortcut to run from iOS Safari that identifies the correct draft for the current week (by Draft title/first line) and appends a markdown link for the Safari page I’m viewing.
I have it working as long as a draft by the right name already exists (e.g.,
Links for 2019-11-26) – it identifies the next Tuesday, searches for a draft by the right name, and appends the link once it finds it.
However, I can’t figure out how to make it create the draft if it doesn’t already exist. I get an error. I have tried to use a Shortcuts If statement (e.g., If Draft has any value, or If Draft content has any value), but this seems to always create a new note in draft…
Any suggestions? Thanks!