On a phone yesterday, the hospital setup 3 different treatments. I typed this in Drafts 5 which I keep open on my iPad Pro 12.9. It would have been great to select, t or copy to clipboard the 1st appointment and then send to Fantastical. It would be nice to have been able to select the next appointment, copy to Fantastical, etc. As it is now, I have to create a Draft for each appointment and send to Fanstastical.
In the same way, it would be helpful to copy a paragraph from a longer text and use a Drafts 5 action to send in an email, text message, etc.
You could probably build something like this fairly easily using the getClipboard() function (documentation) in an action, ideally one in a group set to be used as a keyboard. Your workflow would then be launch Drafts, tap the keyboard action button to have the clipboard contents processed by that action.
You might want to consider using Workflow to automate this, especially if you just want only the clipboard. Here’s a quick Workflow action which will create a calendar event from the current clipboard.
Using format I showed, If your selection has date it should be parsed properly on the Fantastical side … I used “May 5th” to save event yesterday and it got to right spot!
@adamsjw2 The one I linked does not group lines into one event, it creates a new event per line (thus the name Events, not Event)
Edit: It doesn’t parse dates in the text though, just creates a new event per line. It does use fantastical to then parse the whole item so dates should work, but maybe it still doesn’t do what’s necessary for this use case.
I use drafts with fantastical all the time so I’ll keep an eye on this thread to see what you guys come up with.
Hey!! The script does work. I don’t know what I was doing wrong yesterday. I tried it with no line spacing and with blank lines between each entry and it worked fine.
Thanks for your help. This thread now has three solutions to a single problem.
Jim