Editorial Workflows

Smart Move (updated)

public workflow

Install 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: Checks the file location. If it's in Local, it suggests to move it to Dropbox. If it's in Dropbox, it suggests to move it to Local.

This version solves a problem in the original Smart Move workflow that creates a file with Yes as it's content when moving to Dropbox.

Shared by: @devsl

Comments: Comment Feed (RSS)

There are no comments yet.

+ Add Comment

Workflow Preview
Get Current File Name ?
Include Folder
OFF
Include Extension
ON
Set Variable ?
Variable Name
filename
Value
Input
Get File Contents ?
File Name
%var:filename
In Dropbox
ON
If File Does Not Exist
  • Empty Output
  • Stop Workflow
Get Bookmark URL ?
Include Selected Range
OFF
If File is in Dropbox ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
?root=dropbox
Set Variable ?
Variable Name
filelocation
Value
Dropbox
Set Variable ?
Variable Name
filedestination
Value
Local
Document Text ?
Folded Text
  • Include
  • Replace with:
Set Variable ?
Variable Name
filecontent
Value
Input
Show Alert ?
Title
Ready to move?
Message
Your file "filename" is currently in filelocation, and will be moved to filedestination. Are you sure you want to move it?
Button 1
Yes, Move it!
Output Value
Yes
Button 2
No, Don't!
Output Value
No
Button 3
(don't show)
Output Value
Show Cancel Button
OFF
If Yes ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Yes
Set File Contents ?
File Name
%var:filename
In Dropbox
OFF
New Text
filecontent
If File Does Not Exist
  • Create
  • Stop Workflow
Show Alert ?
Title
File Successfully Moved
Message
The file "filename" was successfully moved from filelocation to filedestination. Rerun the workflow if you need another file moved.
Button 1
OK, Thanks
Output Value
Input
Button 2
(don't show)
Output Value
Button 3
(don't show)
Output Value
Show Cancel Button
OFF
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
OFF
Message
Stopped
…End If
If No ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
No
Show Alert ?
Title
File Wasn't Moved
Message
The file "filename" wasn't moved from filelocation to filedestination. Rerun the workflow if you change your mind.
Button 1
OK, Thanks
Output Value
Input
Button 2
(don't show)
Output Value
Button 3
(don't show)
Output Value
Show Cancel Button
OFF
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
OFF
Message
Stopped
…End If
…End If
If File is in Local ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
?root=dropbox
Set Variable ?
Variable Name
filelocation
Value
Local
Set Variable ?
Variable Name
filedestination
Value
Dropbox
Document Text ?
Folded Text
  • Include
  • Replace with:
Set Variable ?
Variable Name
filecontent
Value
Input
Show Alert ?
Title
Ready to move?
Message
Your file "filename" is currently in filelocation, and will be moved to filedestination. Are you sure you want to move it?
Button 1
Yes, Move it!
Output Value
Yes
Button 2
No, Don't!
Output Value
No
Button 3
(don't show)
Output Value
Show Cancel Button
OFF
If Yes ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
Yes
Set File Contents ?
File Name
%var:filename
In Dropbox
ON
New Text
filecontent
If File Does Not Exist
  • Create
  • Stop Workflow
Show Alert ?
Title
File Successfully Moved
Message
The file "filename" was successfully moved from filelocation to filedestination. Rerun the workflow if you need another file moved.
Button 1
OK, Thanks
Output Value
Input
Button 2
(don't show)
Output Value
Button 3
(don't show)
Output Value
Show Cancel Button
OFF
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
OFF
Message
Stopped
…End If
If No ?
Run the block if
Input
  • is Equal to
  • is Not Equal to
  • Contains
  • Doesn't Contain
  • Matches Regular Expression
No
Show Alert ?
Title
File Wasn't Moved
Message
The file "filename" wasn't moved from filelocation to filedestination. Rerun the workflow if you change your mind.
Button 1
OK, Thanks
Output Value
Input
Button 2
(don't show)
Output Value
Button 3
(don't show)
Output Value
Show Cancel Button
OFF
Stop ?
Stop
  • This Workflow
  • Repeat Block
Show HUD Alert
OFF
Message
Stopped
…End If
…End If