ExifTool Forum

ExifTool => Newbies => Topic started by: paulcalver on May 06, 2023, 10:37:37 AM

Title: Automator Folder Action
Post by: paulcalver on May 06, 2023, 10:37:37 AM
Hi,  I've been trying to make an automaton folder action to automatically remove camera make exif data when new .dng files are added.  From my research this appears correct, but doesn't seem to be working?

for f in "$@"
do
  if [ "${f: -4}" == ".dng" ]; then
    /usr/local/bin/exiftool -overwrite_original -make= "$f"
  fi
done

I've check path is correct and that latest exiftool is installed via terminal.  Screen shot attached of the action.

Any help would be amazing, thanks.  Paul.
Title: Re: Automator Folder Action
Post by: paulcalver on May 07, 2023, 04:37:23 PM
Tried running this in terminal and this is the error I'm getting:

Error: [minor] Error reading value for MakerNotes entry 30
 
Title: Re: Automator Folder Action
Post by: StarGeek on May 07, 2023, 04:58:58 PM
That is telling you that exiftool can't parse the MakerNotes in the file.  This could be because the format of the MakerNotes is unknown, but it's more likely they've been corrupted by a program which doesn't properly rewrite EXIF data.

Unless it is stopping your program, you can ignore it. Otherwise, you can add the -m (-ignoreMinorErrors) option (https://exiftool.org/exiftool_pod.html#m--ignoreMinorErrors) to suppress it, though that will also suppress other minor warnings.
Title: Re: Automator Folder Action
Post by: paulcalver on May 07, 2023, 05:56:16 PM
Final found the solution!!  This allows you to shoot a Hasselblad tethered to Phocus and then automatically import into Capture One:

for f in "$@"
do
    /usr/local/bin/exiftool -overwrite_original -MakerNotes= "$f"
    /usr/local/bin/exiftool -overwrite_original -Make=HB "$f"
done
Title: Re: Automator Folder Action
Post by: Phil Harvey on May 07, 2023, 09:11:39 PM
You should be able to do this in a single command (which will execute much more quickly):

exiftool -overwrite_original -makernotes= -make=HB $@

- Phil
Title: Re: Automator Folder Action
Post by: paulcalver on May 08, 2023, 02:31:12 AM
Thanks Phil, that does indeed work faster!