Some Incremetal questions, renaming and reorganize

Started by jopojp, June 16, 2020, 09:29:26 AM

Previous topic - Next topic

jopojp

Hello.
I'm a Newbie. My Plan ist simple.

I want to edit the timestamp of all images incremental in minutes. I want to define with what time it should start with.

After that is done, all files should get renamed by my defined value with an incremental number in front so no duplicated file names and easier to look through.

Now the last part.

After everything has been done, the images which has been renamed, should get sorted in folders from the filename.
I planned a filename structure of that:

01_nature_animals_fox.jpg
01 is the incremental number.
nature is the categorie
animals is the sub-categorie

The image should be moved to nature/animals/01_nature_animals_fox.jpg

Quite a big task. I'm fairly new and never coded myself. At the moment i try to understand the way exifool is working.
I would be glad if this get somewhat solved.

I'm moving to a different cloud hoster. I haven't sorted them well and for some reasons the exifdata is missing.
My only goal is to restore the timestap of creation and reorganize it.

Have a great day!

Phil Harvey

Here is one of the many threads dealing with writing sequential times to files.

And you can do this to add a sequence number to all file names:

exiftool "-filename<%.2C-$filename" DIR

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

jopojp

Thank you i got my script somewhat working now.
Is there a possibility to reset the filesquenzer each folder?

With inremental naming this is possible but i wonder if it would be also possible with filesquenze.

StarGeek

Yes, just use $FileSequence where you want it.  But remember that FileSequence starts at 0 unless you use ${FileSequence;$_+=1} (replace 1 with whatever number you want to start at).
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype