Conditional Renaming Method

Advanced Renamer forum
#1 : 31/07-19 17:34
John
John
Posts: 2
I would like to rename my files based on the tags available to me. IE

If (<Img Year>-<Img Month>-<Img Day>_<Img Hour>_<Img Sec>) <>""
then rename <Img Year>-<Img Month>-<Img Day>_<Img Hour>_<Img Sec>_<Inc NrDir:0001>
else if ( <Year Created>-<Month Created>-<Day Created>_<Hour Created>_<Min Created> <> ""
then rename <Year Created>-<Month Created>-<Day Created>_<Hour Created>_<Min Created>_<Inc NrDir:0001>
else <Year Modified>-<Month Modified>-<Day Modified>_<Hour Modified>_<Min Modified>_<Inc NrDir:0001>

Right now i am running the three methods each using filters and sorts

I would like to create this method and call it from a Powershell script to recurse through my collection.

Thanks
Johhn







31/07-19 17:34
#2 : 31/07-19 18:09
David Lee
David Lee
Posts: 245
Reply to #1:
Have you considered ARen's Script method (JavaScript), using app.parseTags()?


31/07-19 18:09
#3 : 01/08-19 03:40
John
John
Posts: 2
Reply to #2:
I have, but i was hoping there was some embedded function to chain Methods together and give them a priority . Also using the Aren scripting means i would need to make 3 passes of the same source folder where doing them conditionally would mean only one pass and also keep auto numbering etc in tact.
The only way i can see doing this now is to use the Java script method and recreate the New Name method in code, including the duplicate Exifdata check and apply my 3 checks each of my conditions. Very doable but not ideal.


01/08-19 03:40 - edited 01/08-19 03:45