Rename files with creation date
Posted: 14 Dec 2012 13:28
Hi,
I have a folder of images, all with the pattern of 4 alphanumeric characters, followed by 4 digits and the extension, for example:
abcd0234.jpg
I tried to select all files in the folder and use batch rename (shift-f2) with the pattern:
<datec yyyy.mm.dd-hh:mm>_<#001>_* /i
to get, for the example above:
2012.12.14-14:23_001_abcd0234.jpg
First, it does not work. There are conflicts. Can't understand why, since I am using a sequencer <#001>...
Second, this assumes I first sorted the files based on creation date, otherwise the sequencer will be wrong.
So, I am looking for a script that does just that - sort all the files in the folder based on creation date, and then rename the files according to the pattern above.
Can anyone help me with the script? I'm clueless with the scripting language.
Regards,
Chompy18
I have a folder of images, all with the pattern of 4 alphanumeric characters, followed by 4 digits and the extension, for example:
abcd0234.jpg
I tried to select all files in the folder and use batch rename (shift-f2) with the pattern:
<datec yyyy.mm.dd-hh:mm>_<#001>_* /i
to get, for the example above:
2012.12.14-14:23_001_abcd0234.jpg
First, it does not work. There are conflicts. Can't understand why, since I am using a sequencer <#001>...
Second, this assumes I first sorted the files based on creation date, otherwise the sequencer will be wrong.
So, I am looking for a script that does just that - sort all the files in the folder based on creation date, and then rename the files according to the pattern above.
Can anyone help me with the script? I'm clueless with the scripting language.
Regards,
Chompy18