Editorial Workflows

wf_toRead

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: takes input from workflow app and adds to a taskpaper document.
adds to lists of books to read.
Params from workflow app:
- section (i.e. scifi, thriller, etc)
- author, Title
- series (yes, no)

Shared by: Beginner101

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Request Text Input ?
Title
section
Initial Text
  • Single Line
  • Multiple Lines
Keyboard Options:
Set Variable ?
Variable Name
section
Value
Input
Request Text Input ?
Title
neuer Titel
Initial Text
  • Single Line
  • Multiple Lines
Keyboard Options:
Set Variable ?
Variable Name
book
Value
Input
Document Text ?
Folded Text
  • Include
  • Replace with:
Find ?
Search for
section
Match Group (RegEx)
0 (entire match)
Search Type
  • Regular Expression
  • Case-insensitive Search (A = a)
  • Case-sensitive Search (A ≠ a)
Output
  • Found Text
  • Range of Text (from:to)
If… ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Select Range ?
Range (from:to)
Input
Relative to
  • Entire Document
  • Current Selection
Move Caret ?
Direction
  • Backward
  • Forward
  • Start/End of Document
  • Start/End of Line
  • Number of Characters:
1
Replace Selected Text ?
Replacement Text
book
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
OFF
Message
Stopped
…End If
Console Output ?
Text
section book
Run Python Script ?
Source Code
#coding: utf-8
import workflow
import editor
import console

action_in = workflow.get_input()
section = workflow.get_variable('section')
book = get_variable('book')
text = editor.get_text()


print.str(section)
print(book)


end = len(text)
editor.replace_text(end, end, '\n\n' + section + '\n' + book + '\n', False)

#TODO: Generate the output...
action_out = action_in

workflow.set_output(action_out)