Move images/videos to CameraMake/CameraModel/Year/Month/Day tree

Started by SampsonF, February 26, 2018, 01:38:05 PM

Previous topic - Next topic

Phil Harvey

To do this, add the following line as one of the entries in the PrintConv lookup:

    OTHER => sub { shift }, # pass all other values straight through

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

SampsonF

That is exactly what I need.

Thank you!

I put my work file here for easy reference:

# Begin of ~/.ExifTool_config
%Image::ExifTool::UserDefined = (
   'Image::ExifTool::Composite' => {
      MyModel => {
         Require => {
            0 => 'Model',
         },
         ValueConv => '$val[0]',
         PrintConv => {
            'iPhone 5S' => "iPhone 5s",
            'iPhone 6,2 - 8.0.2' => "iPhone 6",
            'iPhone 6,2 - 8.1.1' => "iPhone 6",
            'iPhone 6,2 - 8.1.2' => "iPhone 6",
            'iPhone 6S' => "iPhone 6s",
            'iPhone 6S Plus' => "iPhone 6s Plus",
            OTHER => sub { shift }, # pass all other values straight through
         },
      },
   },
);
1; #end