Author Topic: Keyword Count  (Read 225 times)

Offline mklass

  • Sr. Member
  • ****
  • Posts: 394
    • View Profile
    • Mick Klass Photography
Keyword Count
« on: August 15, 2026, 03:42:21 AM »
Is there a way in PM+ version 2026.6, build 9175 to get a count of the number of keywords assigned to an image?

The stock photo site that I use likes a minimum number to improve discoverability, but also discourages too many keywords. It would be helpful to know the number of keywords before uploading, rather than trying to modify the files after uploading.

Offline ahoward

  • Camera Bits Staff
  • Uber Member
  • *****
  • Posts: 1398
    • View Profile
Re: Keyword Count
« Reply #1 on: August 17, 2026, 10:00:32 AM »
There is currently no way to do this within Photo Mechanic. The best suggestion I have at the moment is to export the keywords to a TSV file using the Text Exporter, then use a formula in your spreadsheet software to calculate the number of keywords in the column where you put the keywords.

The following formula works to do that in MacOS Numbers (and likely Excel too)

=IF(A1="","",LEN(A1)-LEN(SUBSTITUTE(A1,",",""))+1)

Replace A1 with the column where the keywords are

Offline mklass

  • Sr. Member
  • ****
  • Posts: 394
    • View Profile
    • Mick Klass Photography
Re: Keyword Count
« Reply #2 on: August 17, 2026, 02:41:39 PM »
Better than nothing, but a bit clumsy.

Perhaps this could be a future enhancement?

Offline Graham1

  • Full Member
  • ***
  • Posts: 151
    • View Profile
Re: Keyword Count
« Reply #3 on: September 28, 2026, 03:11:11 PM »
There is an easy way to do this if you use a very neat piece of software called ClipboardFusion Pro, to be found at binaryfortress.com. It only costs $19 for the full version, but there is even a free version.

As the name suggests, it monitors the clipboard, but amongst the many things it can do is run a macro when a hotkey selection is pressed (I use CTRL ALT C). I have configured a macro so that a dialogue box pops up which shows number of keywords and number of characters in selected text when the hotkey is pressed. When not in use, it just sits unobtrusively on the taskbar (Windows).

I have attached a screenshot. In this case, it is counting the number of keywords. I could equally select the text in the Desription/Caption field and it would show the number of characters used in the caption. As you can see, it reports number of words, number of chararacters with spaces, number of characters excluding spaces, number of keywords and number of words (if you have multi-word keywords) - you can easily configure the macro to show whatever information you want, and cut out any that is not relevant for you to see.

Also attached is the code you need for the macro to produce this dialogue box. Copy and paste it into the macro editor and it should just work. It is very easy to do, even for me with no knowledge of programming.

This is only one use. You can store keywords, the clipboard history etc. - its uses are (relatively speaking) endless. It is a really useful piece of low impact software wittout unnecessary bloat.

Hope this helps.

Graham




Offline Graham1

  • Full Member
  • ***
  • Posts: 151
    • View Profile
Re: Keyword Count
« Reply #4 on: September 28, 2026, 03:12:23 PM »
Opps, forgot to attach screenshot

Offline mklass

  • Sr. Member
  • ****
  • Posts: 394
    • View Profile
    • Mick Klass Photography
Re: Keyword Count
« Reply #5 on: September 28, 2026, 03:15:45 PM »
Is this for Windows only, or also for Mac?

Offline mklass

  • Sr. Member
  • ****
  • Posts: 394
    • View Profile
    • Mick Klass Photography
Re: Keyword Count
« Reply #6 on: September 28, 2026, 03:21:34 PM »
It looks like the MacOS version is nowhere near the current Windows version. The Mac version is v1.1, 12 years old and poorly rated in the Apple Store.

Offline Graham1

  • Full Member
  • ***
  • Posts: 151
    • View Profile
Re: Keyword Count
« Reply #7 on: Yesterday at 01:39:55 AM »
Yes, I use Windows. The Windows version is actively updated and definitely live. It's a pity it does not work for Mac users, but hopefully this will help someone on Windows who has similar issues.

Graham