Hey all been creeping for awhile and starting to move most of my actions that launch shortcuts to run natively in drafts with some clean prompts. Just looking for some references to solve the following. I don’t mind figuring it out on my own using some regex and figuring out find and replace etc but I figured this can’t be a unique request.
So I have a draft for all my clients. In that draft I have a header “##### Activities” I also have actions for calling the client and emailing the client which grabs the phone number or my selected text to send as an email from the draft.
What I would like to do is add a step at the end of each action that would add “Phone Call - DATE - PROMPT(what the call was about) under that header.
So questions is would I do a regex on #### Activities until an empty line then add the log and then do a replace?
Any suggestions or better methods would be helpful. Fairly new to scripting but can look up something if I need too.