Editorial Workflows

Character Aspects

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: Quick generation of aspects from list.

Shared by: Chris Allison

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Get File Contents ?
File Name
ACKS data/aspect_list.txt
In Dropbox
If File Does Not Exist
  • Empty Output
  • Stop Workflow
Set Variable ?
Variable Name
Run Python Script ?
Source Code
#coding: utf-8
import workflow, random, ast

action_in = []

action_in = ast.literal_eval(workflow.get_variable('aspects'))

#TODO: Generate the output...

a1 = random.choice(action_in)
a2 = random.choice(action_in)
aspects = str(a1+", "+a2)

workflow.set_output('> **Aspects**: '+aspects)
Replace Selected Text ?
Replacement Text