MacMost Q&A Forum • View All Forum QuestionsAsk a Question

How Do I Get a Document Of Keywords Used and Photos That Have Each Keyword?

I am trying to create a document of each keyword that I have used, and the name of each photo that is associated with that Keyword. I would also like to do it the other way around; so a document of the photo name and what keywords are attached to it. All of the information is there. There has to be a way to make it as more of a printed index of one’s photos. Thanks!
—–
Chelsea

Comments: 7 Responses to “How Do I Get a Document Of Keywords Used and Photos That Have Each Keyword?”

    4 months ago

    If you just want a list of Keywords I can think of two ways to get it. The first is to select all of your photos, then Window, Info. Then select all of the keywords shown in the Info window. Copy that and paste into a TextEdit document or something. You can do it also by brining up the Keyword Manager in Photos and you can select them all and copy and then paste into a text editor.

    But that won’t get you a list of keywords and photos.

    To do that you’d need to use JavaScript or AppleScript in Automator or Script Editor. I have a tutorial on how to use JavaScript in Automator to look at photos and keywords. So you could modify that to produce what you want.

    https://macmost.com/using-javascript-to-find-photos-without-keywords.html

    I don’t know how experienced you are with programming so I don’t know if this will be useful to you or not, but it is a good place to start if you want to play around with it.

    Maybe I can make other suggestion if I knew WHY you wanted to do this. Often coming up with ideas requires the WHY to see the bigger picture. What good is a list of filenames and keywords when you have the actual photos and keywords in the Photos app already?

    Chelsea
    4 months ago

    Wow! Thanks for getting back so fast! As to why, I have a TON of photos and I need to be able to find a photo quickly. Some presentations I give, I have the photos printed out and I wanted to make an index using the keywords. I want to name my pictures, for example Page 25. Let’s say Page 25 has keywords flower and Hawaii. I want to make an index of the keywords so I can look up Flower and Page 25 will be there, as well as if I look up Hawaii Page25 will be there. Does that make sense?

    4 months ago

    Chelsea: So why not just search for those Keywords in Photos? Why do you need a list? If a photo has those two keywords, then just search for them?

    Chelsea
    4 months ago

    When I have my computer with me, that’s what I do. However, there are times that I need to give a presentation to old school people who want printed photos. I need a way to find a particular picture quickly instead of having to search.

    4 months ago

    Chelsea: I guess what I’m asking is it seems you are searching either way. On the one hand you are searching for a photo by file name, and on the other hand by keywords. But with keywords at least you can go right to your search. With the name you need to look it up in your printed index first.

    Chelsea
    4 months ago

    If I am using automator to write javascript, do you have an example of writing to a txt file to desktop? also do you know where i can find documentation on the properties of photo (from your example).

    4 months ago

    Chelsea: You may be able to find some documentation if you use Script Editor instead, and look in the Library window. Just remember to look for JavaScript, not AppleScript docs. As for writing to a file, maybe don’t bother with that if you can’t find out how and instead just output the results in Script Editor and copy and paste after you run it.

Comments Closed.