ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: mklein on May 27, 2018, 01:42:54 PM

Title: "Warning: Can only set MDItem tags on OS X"
Post by: mklein on May 27, 2018, 01:42:54 PM
Hello all

I am just developing a BATCH file in order to adjust the time/date of some of my RAW files.

Everything works as desired, but I get two warnings I cannot explain:

1.
Warning: [minor] Entries in SubIFD were out of sequence. Fixed.
Call: exiftool -DateTimeOriginal+="0:0:0 2:0:0" -CreateDate+="0:0:0 2:0:0" -ModifyDate+="0:0:0 2:0:0" -IFD1:ModifyDate+="0:0:0 2:0:0" -overwrite_original %1 -r

2. Warning: Can only set MDItem tags on OS X - C:/Users/Administrator/Desktop/_ABC1234.ARW
Call: exiftool "-FileCreateDate<DateTimeOriginal" "-FileModifyDate<DateTimeOriginal" -overwrite_original %1 -r

BTW: I am using Windows 10 Pro and not Mac OS

What does this mean and how can I fix it? If I check the files, all date/time adjustments have been done successfully.
So what do these two error message mean? Can I ignore them?


EDIT: Here's my complete script:

@ECHO OFF
exiftool -DateTimeOriginal+="0:0:0 2:0:0" -CreateDate+="0:0:0 2:0:0" -ModifyDate+="0:0:0 2:0:0" -IFD1:ModifyDate+="0:0:0 2:0:0" -overwrite_original %1 -r
exiftool "-SonyDateTime<DateTimeOriginal" "-SonyDateTime2<DateTimeOriginal" -overwrite_original %1 -r
exiftool "-FileCreateDate<DateTimeOriginal" "-FileModifyDate<DateTimeOriginal" -overwrite_original %1 -r

Many thanks,
Michael
Title: Re: "Warning: Can only set MDItem tags on OS X"
Post by: Phil Harvey on May 27, 2018, 02:12:25 PM
Hi Michael,

The SubIFD order problem is a bug in whatever software created the file, but ExifTool fixes this.

The MDItem warning may be ignored, and I will fix this in the next release.  Thanks for this report.

- Phil
Title: Re: "Warning: Can only set MDItem tags on OS X"
Post by: mklein on May 28, 2018, 04:20:21 AM
Hi Phil

Thank you!

I am now trying to reduce my three calls to only one call of ExifTool. This works except the file system dates:

I would like to write the FileCreateDate and FileModifyDate with the additional adjustment of e.g. 2 hours.

"-FileCreateDate<DateTimeOriginal" -> This uses the wrong time, I need a 2 hour adjustment here

"-FileCreateDate<(DateTimeOriginal+2)" -> This does not work, but that's what I need. Is there a way to add the 2 hours within this ExifTool call?

Thanks,
Michael


Title: Re: "Warning: Can only set MDItem tags on OS X"
Post by: Phil Harvey on May 28, 2018, 07:43:03 AM
There are two ways to do this.

1. the -globalTimeShift option will shift all date/time values.

2. The ShiftTime function in an advanced formatting expression:

exiftool "-filecreatedate<${datetimeoriginal;ShiftTime($_,'+2')}" ...

- Phil
Title: Re: "Warning: Can only set MDItem tags on OS X"
Post by: mklein on May 28, 2018, 09:28:22 AM
Hi Phil

Option 1 seems to work for me.

This is my call:

exiftool -globalTimeShift "%mode%%time%" "-AllDates<DateTimeOriginal" "-IFD0:ModifyDate<DateTimeOriginal" "-IFD1:ModifyDate<DateTimeOriginal" "-SonyDateTime<DateTimeOriginal" "-SonyDateTime2<DateTimeOriginal" "-FileCreateDate<DateTimeOriginal" "-FileModifyDate<DateTimeOriginal" -overwrite_original %1 -r

%mode% is either "+" or "-" and will be set in my BATCH file
%time% is the amount of time to shift, e.g. "0:0:0 2:0:0" for 2 hours and will be set in the BATCH file as well.
%1 is the folder to be used

Is there anything I can optimize with my call above?

Thanks again,
Michael
Title: Re: "Warning: Can only set MDItem tags on OS X"
Post by: Phil Harvey on May 28, 2018, 09:40:18 AM
Hi Michael,

I can't suggest any improvements.

Looks good.

- Phil