Move image to a new directory based on a tag value

Started by kkaiser, January 31, 2020, 12:21:30 PM

Previous topic - Next topic

kkaiser

I may be asking this incorrectly, so please forgive.  :-[
I have 226 directories that I would like to scan, if they have a 'File Type' of "MOV" I want to move it into another directory called 'video'.

exiftool -d /Volumes/TimeMachine/video '-directory< filetype=MOV' -r /Volumes/TimeMachine/flickr/


Will this work?


Phil Harvey

The -d option is for date/time formatting, and "<" is for copying tag values, so your command won't work.  Try this instead:

exiftool -directory=/Volumes/TimeMachine/video -if '$filetype eq "MOV"' -fast3 -r /Volumes/TimeMachine/flickr/

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

kkaiser