Editorial Workflows

Selection to Fantastical

public workflow

Install Workflow...

This workflow contains at least one Python script. Only use it if you trust the person who shared this with you, and if you know exactly what it does.

I understand, install the workflow!

This is a workflow for Editorial, a Markdown and plain text editor for iOS. To download it, you need to view this page on a device that has the app installed.

Description: Sends the selection to Fantastical, converting TaskPaper @due(YYYY-MM-DD) tags to plain text for Fantastical to parse as a Reminder

Shared by: Derick Fay - http://dfay.fastmail.fm/et

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Selected Text ?
Entire Line(s)
OFF
Empty Selection Output
  • No Output
  • All Text
  • Closest Word
Folded Text
  • Include
  • Replace with:
Run Python Script ?
Source Code
#coding: utf-8
import workflow

i = workflow.get_input()

if '@due(' in i:
         theEnd=""
         theStart=i.split('@due(')[0]
         theDate=i.split('@due(')[1][0:10]
         theEnd=i[(i.index('@due(')+16):]
         i = theStart + " due " + theDate + theEnd

workflow.set_output(i)
URL Escape ?
Open URL ?
Open in
  • In-App Browser
  • Default App / Safari
URL
fantastical2://parse?sentence=Input
Tab
  • Last-used Tab
  • New Tab
  • Tab with ID:
Unique identifier
Wait until Loaded
OFF
Reveal Browser Automatically
ON