Editorial Workflows

Copy File with Timestamp

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: This duplicates the current file, adding a time stamp.

Shared by: @murkee

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Get Current File Name ?
Include Folder
OFF
Include Extension
OFF
Set Variable ?
Variable Name
existingfilename
Value
Input
If… ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]-*
Run Python Script ?
Source Code
#coding: utf-8
import workflow

action_in = workflow.get_input()
action_in=action_in[11:]
action_in=action_in[:-9]
#TODO: Generate the output...
action_out = action_in

workflow.set_output(action_out)
Set Variable ?
Variable Name
existingfilename
Value
Input
…End If
Document Text ?
Folded Text
  • Include
  • Replace with:
Create Document ?
Filename
Year: 2001-Month: 01-Day: 01 existingfilename at Hour: 01 (24h)-Minute: 01.taskpaper
Content
Input
Open in Editor
ON