Create a new Draft which contains a single question from another Draft that contains list of questions

shortcuts
drafts
#1

Hi all,

So I have a Draft with a long list of questions. Each is a writing/journaling prompt. They each have a calendar date associated with them. I’d like to use a shortcut to pick the entry for the day, and make a new draft (with some specific tags applied).

Examples:
5/01 - Describe a moment from today that you want to remember always.
5/02 - What are some things that you’ve been given recently?
5/03 - What is your idea of the perfect morning?

I suppose I am asking how do I use shortcuts to parse a long list of lines in a draft, find the one with the appropriate date, and then make a new draft?

#2

Something like this should do the trick: https://www.icloud.com/shortcuts/9fe4a94ea3b34db39e182d1152fd9f43

However assuming these questions won’t be edited by you in the long draft, I would suggest instead saving that as a file in the /Shortcuts folder of iCloud Drive and getting the contents of the file instead - this would avoid opening Drafts twice.

2 Likes
#3

Purely as an academic example, I wouldn’t expect it to apply directly to this scenario, but should anyone use this as a basis where you specifically need to match a specific text string at the start of a line, the screenshots below show what can happen if you don’t enforce the match at the start, and an option that constrains the results to do so.

2 Likes
#4

Thanks @RosemaryOrchard and @sylumer for the info. I’ve made a .txt file in the iCloud/shortcuts folder and have routed the shortcut to use that instead of a Draft. To your point Rosemary, this way, Drafts only opens once.

Thank you so much for the assist!

1 Like