collect images that have no make Tag in a folder

Started by timitalia, December 01, 2022, 07:50:10 AM

Previous topic - Next topic

timitalia

Hi folks, I have a special one:
I have the following command:
exiftool -r -d %Y-%m-%d  \
'-directory<${FileModifyDate#;DateFmt("%Y")}/${make;}/$FileModifyDate' \
'-directory<${CreatedDate#;DateFmt("%Y")}/${make;}/$createdate' .

It's working fine. It creates a folder structure with the make (Brand) in it:
e.g. 2022/Apple/2022-12-01/...

How can I include all images which do not have a make tag and therefore throw "Tag 'make' not defined"
to have them collected(moved) in a folder with a specific name (e.g. "NO_MAKE") at the same level in the hierarchy, like:

e.g. 2022/NO_MAKE/2022-12-01/...

Ideally, I would like to achieve this in one execution with the command above.
But it was also ok to run a follow-up command for the remaining images that were not moved because they have no "make" Tag.

Concrete Solutions are much appreciated

Phil Harvey

exiftool -r -d %Y-%m-%d  \
'-directory<${FileModifyDate#;DateFmt("%Y")}/NO_MAKE/$FileModifyDate' \
'-directory<${CreateDate#;DateFmt("%Y")}/NO_MAKE/$CreateDate' \
'-directory<${FileModifyDate#;DateFmt("%Y")}/${make;}/$FileModifyDate' \
'-directory<${CreatedDate#;DateFmt("%Y")}/${make;}/$createdate' .

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

StarGeek

"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

timitalia