Add timestamp to new files

Running FileBot from the console, Groovy scripting, shell scripts, etc
Post Reply
ziemowit
Posts: 32
Joined: 13 Feb 2015, 06:59

Add timestamp to new files

Post by ziemowit »

Hello

is it possible to use filebot on a Synology to rename any other file by just adding a timestamp? I have a scanner which scans directly to a path on my Synology NAS. Output would be scan0001.pdf, scan0002.pdf, etc. I would like to run a process which will detect any new file in this path and rename it by adding a time stamp e.g. 2016-01-28-12:00_scan.pdf
Is that possible with filebot?
User avatar
rednoah
The Source
Posts: 23925
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Add timestamp to new files

Post by rednoah »

You mean with the FileBot GUI? You can do generic file renaming like this:
viewtopic.php?f=3&t=2072

If you want to do that from the command-line then you can just use bash:
http://unix.stackexchange.com/questions ... he-filenam
:idea: Please read the FAQ and How to Request Help.
ziemowit
Posts: 32
Joined: 13 Feb 2015, 06:59

Re: Add timestamp to new files

Post by ziemowit »

Im looking for something that doesn't require any manual interaction. Maybe filebot is not really capable.
User avatar
rednoah
The Source
Posts: 23925
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Add timestamp to new files

Post by rednoah »

You're looking for something very basic. Watching files and renaming files. If you want to use FileBot you'd write a Groovy script for that. But you might as well write a bash script, because you'll find more help for that.
:idea: Please read the FAQ and How to Request Help.
Post Reply