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?
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.