Copy MacOS Finder tags to IPTC

Started by jw3, September 30, 2022, 11:50:21 PM

Previous topic - Next topic

jw3

Both mdls FILE and exiftool -macos:all FILE show the finder tags:

exiftool -macos:all IMG_7209.DNG
MD Item User Tags              : Red, Blue


and

mdls IMG_7209.DNG
kMDItemUserTags                        = (
    Red,
    Blue
)


yet EXIFTool MDItemUserTags apparently does not see them.

Phil Harvey

This is not consistent with the output of your previous command, which didn't see this tag:

exiftool -mditemusertags FILE

What is up?  Did you spell the tag name incorrectly in this command?  Or did it suddenly appear in the file?

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

jw3

I don't know. Perhaps as you mentioned, the indexer had not yet scanned the file when I ran exiftool -mditemusertags the previous time. I copied and pasted the command again from history and this time it showed properly:

exiftool -mditemusertags IMG_7209.DNG
MD Item User Tags               : Red, Blue


However, this still does not work.

exiftool "-MDItemUserTags>subject" IMG_7209.DNG
Warning: [minor] Bad format (16) for MakerNotes entry 14 - IMG_7209.DNG
Error: [minor] Maker notes could not be parsed - IMG_7209.DNG
    0 image files updated
    1 files weren't updated due to errors


Phil Harvey

Right.  That problem is fixed by ExifTool 12.46 (or 12.47, just released).

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