Organizing bracketed photos in folders.

Started by JobWellDone, December 21, 2022, 06:59:36 AM

Previous topic - Next topic

JobWellDone

Quote from: Phil Harvey on December 26, 2022, 09:13:34 PMThis will require a completely different strategy, and my initial config file will be useless for this purpose.

Hi Phill, converted all my photos using original script you so kindly provided, however found myself in situation when i had to move all images from photosession in one folder once again to preform ananother operation using 3rd party software.

Now i cannot get them back into bracketed folders because file name was changed and original script is indeed not working anymore.


Currently my files look like

\_DSC0001_SEQ1.ARW
\_DSC0002_SEQ2.ARW
\_DSC0003_SEQ3.ARW
\_DSC0004_SEQ1.ARW
\_DSC0005_SEQ2.ARW
\_DSC0006_SEQ3.ARW
\_DSC0007_Single.ARW
\_DSC0008_Single.ARW
\_DSC0009_SEQ1.ARW
\_DSC0010_SEQ2.ARW
\_DSC0011_SEQ3.ARW
\_DSC0012_Single.ARW


Could you please be so kind and suggest a script that would work based on EXIF tags only not relaying on file name at all so files could return back in folders by bracketing like this


\_DSC0001\_DSC0001_SEQ1.ARW
\_DSC0001\_DSC0002_SEQ2.ARW
\_DSC0001\_DSC0003_SEQ3.ARW
\_DSC0004\_DSC0004_SEQ1.ARW
\_DSC0004\_DSC0005_SEQ2.ARW
\_DSC0004\_DSC0006_SEQ3.ARW
\_DSC0007_Single.ARW
\_DSC0008_Single.ARW
\_DSC0009\_DSC0009_SEQ1.ARW
\_DSC0009\_DSC0010_SEQ2.ARW
\_DSC0009\_DSC0011_SEQ3.ARW
\_DSC0012_Single.ARW


Or even better with same timestamp naming suggested in post #11 in this topic. I really appreciate your help.


JobWellDone

Quote from: Phil Harvey on December 21, 2022, 09:29:43 AMexiftool -config first_file.config "-directory<firstfile" DIR
Hello Phil i need to run this script trough .bat file where i provide many individual image files and it works great except it creates sub folders in location from which command line is run in my case C:\Users\HP\

Could you advice how can i modify your original command to create sub folder in same location as where the image stored?

Bat file has this
"C:\ExifTool\exiftool.exe" -config "C:\ExifTool\first_file.config" "-directory<firstfile" %*
and it gets input like this
"C:\ExifTool\exiftool.exe" -config "C:\ExifTool\first_file.config" "-directory<firstfile" "c:\images\_DSC0001.ARW" "c:\images\_DSC0002.ARW" "c:\images\_DSC0003.ARW"

Tried using %d, but does not do much.

StarGeek

Quote from: JobWellDone on May 05, 2023, 07:09:43 AMTried using %d, but does not do much.

%d would be the answer, but you have to put it in the correct location and read FAQ #27.

What you want is probably
"-directory<%%dfirstfile"
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

JobWellDone

Quote from: StarGeek on May 06, 2023, 12:40:28 PMWhat you want is probably
"-directory<%%dfirstfile"
getting error Warning: Invalid tag name '%dfirstfile'. Use '=' not '<' to assign a tag value - C:/one/_DSC0003.ARW

even if i use = to assogn value custom tag firstfile is not resolved when using %%firstfile

StarGeek

Ah, ok, I forgot the dollar sign as it's now a more complex tag copy.

"-directory<%%d$firstfile"
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

JobWellDone