Page 1 of 1

Sync and rename

PostPosted: Tue Oct 18, 2016 2:26 pm
by openmedi
Hello,

I would like to build a rule which does the following: I receive a bunch of *.txt files in a Dropbox App folder (one of those folder, which live in Dropbox/Apps/$NameOfApp. These txt files might receive changes. I would like to sync them (one way) into another folder outside of dropbox and also renaming them. I am open to either retaining the possible changes or to simply create a new file. The way the files are named when I receive them looks something like this: "2016-Oct-18 JK.txt". They should be renamed in this way: "inbox-1.md" (inbox-2.md, inbox-3.md, etc.). I also would like to add the filename without the extension to the contents of the file as the title of the file:

Code: Select all
# $OriginalFilename

$OriginalContentsOfTheFile


I tried the sync rule, but it seems to not work when combined with a renaming rule.

Here's what I tried: http://imgur.com/a/3BNYf. But this doesn't retain the original file name, nor does it rename the file before moving it. Any help with creating that rule is appreciated! Thanks in advance.

Re: Sync and rename

PostPosted: Wed Oct 19, 2016 11:12 am
by Mr_Noodle
You definitely don't want to use sync here if you are renaming the file. Try using the copy action instead.