How to convert Finder tags to photo metadata?

I inherited scanned pictures in a Sierra Mac Photos library that contain no usable metadata e.g. show scanning dates instead of creation dates, and have no description or GPS data. However, they do have meticulously added information in Finder tags and comments. I have updated the library for Monterey.


Any easy way to copy those tags and comments to metadata i.e. the tags in keywords and the comments in description? I can't write or run an Applescript to save my life. Correcting the dates (a few photos at a time) is a bit clumsy with 'Adjust Date and Time' but that I will manage.

MacBook Air 13″, macOS 12.0

Posted on Apr 4, 2022 7:15 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 4, 2022 12:51 PM

I don't use Finder comments but I did a quick test. In Monterey I added a Finder comment to a .jpg file and it is displayed in exiftool like this:


exiftool -a -G1 -s -api RequestAll=2 .
[MacOS]         MDItemFinderComment             : Finder comment.
[MacOS]         XAttrMDItemFinderComment        : Finder comment.


MDItemFinderComment seems to be more readily available and XAttrMDItemFinderComment might not instantly appear.

I don't know how older macOS behaved and how fragile those might be. Anyone?


Anyway, I could successfully copy the Finder comment to IPTC/XMP Caption/Description to all files in a folder with the following command:


exiftool -m -P -overwrite_original_in_place '-IPTC:Caption-Abstract<MacOS:MDItemFinderComment' '-XMP-dc:Description<MacOS:MDItemFinderComment' .


Preview.app and Photos.app displayed them OK.


What other tags besides those there might be?


I hope this helps.


- Matti

Similar questions

5 replies
Question marked as Top-ranking reply

Apr 4, 2022 12:51 PM in response to LarryGoh

I don't use Finder comments but I did a quick test. In Monterey I added a Finder comment to a .jpg file and it is displayed in exiftool like this:


exiftool -a -G1 -s -api RequestAll=2 .
[MacOS]         MDItemFinderComment             : Finder comment.
[MacOS]         XAttrMDItemFinderComment        : Finder comment.


MDItemFinderComment seems to be more readily available and XAttrMDItemFinderComment might not instantly appear.

I don't know how older macOS behaved and how fragile those might be. Anyone?


Anyway, I could successfully copy the Finder comment to IPTC/XMP Caption/Description to all files in a folder with the following command:


exiftool -m -P -overwrite_original_in_place '-IPTC:Caption-Abstract<MacOS:MDItemFinderComment' '-XMP-dc:Description<MacOS:MDItemFinderComment' .


Preview.app and Photos.app displayed them OK.


What other tags besides those there might be?


I hope this helps.


- Matti

Apr 6, 2022 3:11 AM in response to LarryGoh

I don't know if it is possible to add Finder Keywords somewhere? So I presume you want to duplicate the same Finder comment in the IPTC/XMP Caption/Description and Keywords/Subject, right? And then manually fine-tune them, if necessary?


The following command does that (and also mirrors the info in MacOS MDItemDescription and MDItemKeywords):


exiftool -m -P -overwrite_original_in_place '-IPTC:Caption-Abstract<MacOS:MDItemFinderComment' '-XMP-dc:Description<MacOS:MDItemFinderComment' '-IPTC:Keywords<MacOS:MDItemFinderComment' '-XMP-dc:Subject<MacOS:MDItemFinderComment' .


After that command there is the following metadata which Preview.app and Photos.app show:


[MacOS]         MDItemFinderComment             : Finder comment
[MacOS]         MDItemDescription               : Finder comment
[MacOS]         MDItemKeywords                  : Finder comment
[IPTC]          Keywords                        : Finder comment
[IPTC]          Caption-Abstract                : Finder comment
[XMP-dc]        Description                     : Finder comment
[XMP-dc]        Subject                         : Finder comment


The same info is duplicated in IPTC, XMP and MacOS tags. IPTC is the old standard and XMP the new but currently both are used because you never know what application happens to support or prefer one or the other.


> Probably also worth adding "(insert filename / folder name here)" at the end of the command


I prefer to use just the dot: The dot '.' at the end of the long command means 'this folder'. Or alternatively, omit that dot '.' at the end, and instead type the exact name of the file you want to process. Or type just the start of the filename, and then press Tab to use autocomplete and maybe insert '*' to the end, and hit Return to process all files that start with the same letters. Or add '-ext jpg' switch to the command to process only files that have .jpg suffix. Or use wildcard '*.jpg'. That was a rather clumsy instruction but I guess you get the idea.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How to convert Finder tags to photo metadata?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.