Skip to main content
Participant
October 11, 2019
Question

Exporting keyword metadata from specific files

  • October 11, 2019
  • 2 replies
  • 284 views

Hello,

I know that you can export/import the entire keyword list you have in Bridge, and it goes to a text file

But what I would like to do is to assign certain keywords to an image file, then be able to export those assigned keywords to a text file. So, I need to export ONLY the relevant keywords that are assigned a certain image,  thus creating a unique text file that has the kewords for that image. Is there a way to do this? I assume that the assigned keywords become a part of metadata with the file somehow. Any other way to get this information in text format? 

Thanks!

Gabi

This topic has been closed for replies.

2 replies

Stephen Marsh
Community Expert
Community Expert
October 13, 2019

The most common Bridge script methods that I know of can be found here:

 

https://prepression.blogspot.com/2016/08/extracting-metadata-to-csv.html

 

These options are CSV based. The output may need to be manipulated in a text editor using find/replace or a regular expression find/replace if you need a specific format. Or the script would need to be edited to provide the required format.

 

Using ExifTool, one could export only the keyword/subject metadata to .csv using the following command:

 

 

exiftool -subject -csv '/Users/loggedinusername/Desktop/input file or folder' > '/Users/loggedinusername/Desktop/keyword textfile.csv'

 

 

Or to a tab-delimited text file:

 

 

exiftool -subject -txt '/Users/loggedinusername/Desktop/input file or folder' > '/Users/loggedinusername/Desktop/keyword textfile.txt'

 

 

The above code is for Mac OS, Windows OS users would change the 'single quotes' to "double quotes" and use the appropriate file system path syntax.

Chuck Uebele
Community Expert
Community Expert
October 12, 2019

There are programs like exifeditor, that I think can do this. I'm not sure if Lightroom can. The other option is writing a script that can export the data.