My ultimate goal is loop through a folder containing .JPG and .CR3 images and (1) move them to folders based on the user rating then, within those folders (2) move the files to a folder based on file extension.
I have two individual expressions that work for one or the other functions but I can't seem to get them to nest with one command
1. exiftool . '-Directory<rating'
Move all files from current directory to new sub directory based on star rating
2. exiftool . -directory=%e
Move all files from current directory to new sub directories based on file extension
----
I noticed with expression 2, that if I add /anything a sub folder is created. It seems that when I use -directory= I can't access the rating tag, but when I use -Directory<, I can't access the file extension. Does anyone happen to know the difference between the two?
This is related to common mistake 5c (https://exiftool.org/mistakes.html#M5). You need to use "<" if you want to copy values from existing tags, otherwise "=" is used. And tag values may be embedded in a string by prefixing the tag name with "$".
So you want something like this:
exiftool . '-directory<$rating/%e'
- Phil
1. you are an absolute legend for the tool.
2. that worked like a charm 8) Thank you!!
I found the tool today and have been playing with it on MacOS and i'm literally still printing pages of commands. There is no other solution that I've found (minus Canon programs) that allows you to see your in camera star rating (1-5) (in my case from an EOS RP), but this tool has no problem!