Integration with other apps

AppleScript

You can send a sentence to Fantastical using AppleScript. Here's an example script to create the event "Wake up at 8am."

tell application "Fantastical 2"
    parse sentence "Wake up at 8am"
end tell

For full automation, you can have Fantastical 2 create new events and reminders with no interaction by using the add immediately parameter:

tell application "Fantastical 2"
    parse sentence "Wake up at 8am" with add immediately
end tell

URL Handler

Other apps can use the URL handler to send sentences to Fantastical.

parse

Parses a string of text in Fantastical 2:

x-fantastical2://parse?s=Sentence goes here

Optional parameters

n: Adds a note to the new event

x-fantastical2://parse?n=notes&s=Sentence goes here

calendarName: Specify a calendar name for the event

x-fantastical2://parse?calendarName=Work&s=Sentence goes here

add: Add an event immediately, without interaction

x-fantastical2://parse?add=1&s=Sentence goes here

An example with all optional parameters:

x-fantastical2://parse?s=Sentence&n=A note&calendarName=Work&add=1

show

Opens a Fantastical view:

x-fantastical2://show/mini
x-fantastical2://show/calendar

Reveal a specific date

x-fantastical2://show/mini/yyyy-MM-dd
x-fantastical2://show/calendar/yyyy-MM-dd