Sync and rename

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Sync and rename 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.
openmedi
 
Posts: 2
Joined: Wed Jun 26, 2013 3:09 pm

Re: Sync and rename 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.
Mr_Noodle
Site Admin
 
Posts: 11872
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support