Using ExifTool with custom config it is possible to strip the 'Model' tag down to the last word:- i.e. 'Canon EOS 20D' returns '20D'.
I use this with MetaDataMover to do initial copy from card to disk in an Apple Automater action.
Is there any way to access the custom ExifTool filed in II as the hard work's already done in the ExifTool config file?
~/.ExifTool_config entry:
%Image::ExifTool::UserDefined = (
'Image::ExifTool::Composite' => {
MyCam => {
Require => {
0 => 'Model',
},
# select the last word of the model name
ValueConv => 'my $name=$val[0]; $name=~s/.*\W(\w)/$1/; $name',
},
},
);
Command line use and return:
:~ mxt$ exiftool -MyCam Desktop/Sample/_MG_0025.cr2
My Cam : 20D