CSV SourceFile Extension

Started by Cici, October 01, 2024, 03:05:16 AM

Previous topic - Next topic

Cici

Is it possible to use a CSV with SourceFile names that don't include file extensions? For example, I plan to have a directory of DNG files, another of JPG files, TIF files, etc. All files have the same names but just different extensions. I would like to match the SourceFile name (no extension) to files of the same name regardless of the file extension.

Cici

For clarity, in each directory, all filenames are unique regardless of the extension. Although I could see how my request might be an issue if you had multiple files in the same directory with the same name but different extensions. For example, in the directory, you could have files: TestA.dng, TestA.tif and TestA.jpg. And in the CSV file, A SourceFile = /filedirectory/TestA (no extension). How would ExifTool know which file in the directory to process if you didn't use -ext jpg, for example, in the command line? Would it process all 3 files or just the first instance?

Phil Harvey

There is currently no way to do what you want.  The SourceFile column must currently contain a complete directory and file name.

- 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 ($).

Cici

Thanks Phil. The more I thought about it, the more I guessed that was likely the case. I'll survive. Just one extra step.