ICC-Profile Data

Started by Strop, March 26, 2021, 08:58:15 AM

Previous topic - Next topic

Strop

I have mixed up a lot of scanned photos with my other photos.  I would like to seperate them again.  When I look at a scan I can see that in the ICC_Profile it has the ProfileCreator as Hewlett-Packard.

I have hazel so I was wondering if there was a way I could examine each file and if the value matches get it do something.   Not sure on how to script it

exiftool -if  ICC_Profile:ProfileCreator == "Hewlett Packard"

I have no idea.

Laurie

StarGeek

You're pretty close, just need quotes, a $, and a different operator
exiftool -if '$ICC_Profile:ProfileCreator eq "Hewlett Packard" ' -Directory=/New/Location/ /path/to/sourceFiles/

The == is a numeric comparison while eq is a string comparison.  Also, you can probably just use ProfileCreator as I think that name is unique, but it's not a big deal.  The text between the double quotes must be exact, though.
"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

Strop

Thank you very much.  Working a treat.

Laurie