ExifTool Forum

ExifTool => Newbies => Topic started by: Strop on March 26, 2021, 08:58:15 AM

Title: ICC-Profile Data
Post by: Strop on March 26, 2021, 08:58:15 AM
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
Title: Re: ICC-Profile Data
Post by: StarGeek on March 26, 2021, 10:20:37 AM
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.
Title: Re: ICC-Profile Data
Post by: Strop on March 27, 2021, 12:57:10 AM
Thank you very much.  Working a treat.

Laurie