Using Fantastical with Drafts

app-icon

Fantastical is a popular calendar app with excellent natural language parsing capabilities that can be integrated into Drafts in several ways.

Fantastical provides an iOS Share extension which can be used with Drafts’ Share action. It also has excellent x-callback-url support to integrate directly with Drafts - on iOS. The Mac version does not currently support the same URL schemes. Fantastical also offers Shortcuts integration.

Example Actions

  • Event in Fantastical
    • Takes the text of the current draft, and sends it to Fantastical to be parsed as a new calendar event. This version works on both iOS and Mac, but has to use different URLs on each platform.
  • Reminder in Fantastical
    • Takes the text of the current draft, and sends it to Fantastical to be parsed as a new reminder. This version works on both iOS and Mac, but has to use different URLs on each platform.

Scripted Example Action

  • Events in Fantastical
    • Send each line of a draft to Fantastical as an individual event. This action demonstrates use of scripting to break up a draft and execute individual URL callback tasks on the values. This version works only on iOS due to the lack of callback support on Fantastical’s Mac app.

Other Advanced Examples

5 Likes

Hi Folks,
For some reason, the multiple events action for Fantastical now wants you to confirm each add with the fantastical app as opposed to spring back and forth automatically. This obviously stops it working in the background. Any way to fix ?

Many thanks

Jeremy

Modify the script step to include the add parameter with a value of 1 in the URL.

Ref. the Fantastical URL scheme

Hope that helps.

The existing Calendars5 action is an url not a script. I tried editing the existing Fantastical script to see if that would work, but while it opens the Calendars5 app, it doesn’t not pass any data.

Are just you trying to do this with Fantasticsl as you said originally, or with Calendars5 as you just referenced?

With the readdle Calendars5 app

See the reply here then.

Thanks. That seems to be for single entry however. I am trying to work out multiple entry where it parses each line of my draft as a new entry. Am I missing something ?

If you can do it with one line, you can do it with many by looping over the lines in turn and doing the same thing in theory. The only limiting factor would be if Calendars5 is actually only supporting a URL scheme rather than a full x-callback-url scheme; you wouldnt be able to return to Drafts after each parsing - that may be a limitation on the Calendars5 side.

1 Like

My apologies. I now understand the confusion. On my browser its showing all my posts and replies together. I posted two separate topics. One about the fact that Fantastical was wanting user input between each step of the process on multiple event entries, and then another post where I was asking if it were possible to have the same sort of multiple entry action for the Calendars5 app. When I saw your first reply, the way it appeared in my browser was that your reply about Fantastical was referring to calendars5.

At this point, Fantastical is working fine, and Calendars5 … Not so much :frowning:

Wow, Davison-Rieber’s parser action pretty much renders Fantastical redundant. I doubt I’ll bother with the subscription now. These online communities of brilliant computer enthusiasts continue to blow me away…

I realize it has been a long time since you made this post, but if you or perhaps anyone could give me more of a reference of where I can find what you are referring to when you say… “Davison-Rieber’s parser action”, I would be grateful.

@TheOne If you scroll up to the original post in this thread, there is a link:

Hope this helps.

Yes, thank you. Now I understand how to find things better.

Is there anyway that we can also emulate fantastical’s ability to set a zoom meeting simultaneously?

Assuming Zoom has an API or an x-callback-url you can tap into, you should be able to modify the action to incorporate this.