Author Topic: Keywords added by mistake  (Read 4214 times)

Offline Soizic

  • Sr. Member
  • ****
  • Posts: 449
    • View Profile
Keywords added by mistake
« on: December 07, 2020, 07:47:19 AM »
 Hello
How to remove a keyword added by mistake to an hundred photos that already had their correct keywords?
Soizic (France)
MacBook Pro M1,Ventura, PM+ à jour, deepl translator

Offline Dub

  • Full Member
  • ***
  • Posts: 165
    • View Profile
    • instantsphotos
Re: Keywords added by mistake
« Reply #1 on: December 07, 2020, 08:57:31 AM »
Bonjour Soisic,

"Find and Replace" ...on the selected photos, selected fields: Keywords
Find; your keyword
Replace; empty

 ;)
French and "English" with DeepL ¯\_(ツ)_/¯
MPB 13" M1 / Monterey
https://instantsphotos.fr/

Offline TallTrees

  • Newcomer
  • *
  • Posts: 12
    • View Profile
Re: Keywords added by mistake
« Reply #2 on: December 07, 2020, 06:15:30 PM »
I too have accidentally added keywords to several of my images, but when I've tried to remove them using the Find & Replace, I've encountered a few things.

1) Often times the Replace button is dimmed, and the only thing that I can do to make it work is to Quit PM. I've tried checking and unchecking all of the options, and it still doesn't activate.

2) When I run the Find & Replace, for instance, looking for "xyzzy, " I receive an error of "The search term(s) were not found or an unrecoverable error occurred. Nothing was replaced." Yet, I KNOW that the term exist, as I can see it in the image's keywords. Even if I Copy & Paste the term from Keywords, into the Find & Replace field, I still get the error.

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Keywords added by mistake
« Reply #3 on: December 07, 2020, 06:36:25 PM »
I too have accidentally added keywords to several of my images, but when I've tried to remove them using the Find & Replace, I've encountered a few things.

1) Often times the Replace button is dimmed, and the only thing that I can do to make it work is to Quit PM. I've tried checking and unchecking all of the options, and it still doesn't activate.

From your screenshot you have "In: Selected items", so if you have no items selected then there is nothing to search through.  You can change that setting to "All items" and it won't matter if you have items selected or not.

2) When I run the Find & Replace, for instance, looking for "xyzzy, " I receive an error of "The search term(s) were not found or an unrecoverable error occurred. Nothing was replaced." Yet, I KNOW that the term exist, as I can see it in the image's keywords. Even if I Copy & Paste the term from Keywords, into the Find & Replace field, I still get the error.

I suggest turning off "Grep" unless you're really doing regular expression matching and replacing.

HTH,

-Kirk

Offline TallTrees

  • Newcomer
  • *
  • Posts: 12
    • View Profile
Re: Keywords added by mistake
« Reply #4 on: December 07, 2020, 07:16:32 PM »
From your screenshot you have "In: Selected items", so if you have no items selected then there is nothing to search through.  You can change that setting to "All items" and it won't matter if you have items selected or not.

Good call, but I had 1 single image selected in the Contact Sheet. I was able to run the Find & Replace, after quitting & restarting PM. That's when I received the error below, which I get fairly often. I had to resort to manually removing the mistakenly added Keywords by using the Metadata template (invoked by pressing "I"), and then doing a "Save & →" to move to the next image. Fortunately, I'd only added it to 4 images.  :)


I suggest turning off "Grep" unless you're really doing regular expression matching and replacing.

HTH,

-Kirk

I enabled Grep, and EVERYTHING else in an attempt to get the Find command to work, but it continually errors out. Perhaps it doesn't like punctuation?

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Keywords added by mistake
« Reply #5 on: December 07, 2020, 07:38:16 PM »
I suggest turning off "Grep" unless you're really doing regular expression matching and replacing.

I enabled Grep, and EVERYTHING else in an attempt to get the Find command to work, but it continually errors out. Perhaps it doesn't like punctuation?

Remove the comma and I expect that it will work much better.  The comma isn't part of the metadata, it's just there in the Keywords field to separate the individual keywords.  When you remove the keyword, the associated comma will also be removed (or semi-colon if you have your preferences set to use semi-colons instead of commas.)

-Kirk

Offline TallTrees

  • Newcomer
  • *
  • Posts: 12
    • View Profile
Re: Keywords added by mistake
« Reply #6 on: December 08, 2020, 09:46:07 AM »
Remove the comma and I expect that it will work much better.  The comma isn't part of the metadata, it's just there in the Keywords field to separate the individual keywords.  When you remove the keyword, the associated comma will also be removed (or semi-colon if you have your preferences set to use semi-colons instead of commas.)

-Kirk

I'll give that a shot. Thanks. As for doing a Find & Replace with multiple words, should they be separated by a space " ", as in xyzzy password cave? What about dealing with a multi-word phrase, like Golden Gate Bridge, should that be placed in quotes, as in "Golden Gate Bridge"? And lastly, Finding & Replacing by combining both individual words and phrases, would that look like, "Blue Sky" Day "Street Photography" "San Francisco" Building People Kissing?

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Keywords added by mistake
« Reply #7 on: December 08, 2020, 10:12:23 AM »
Remove the comma and I expect that it will work much better.  The comma isn't part of the metadata, it's just there in the Keywords field to separate the individual keywords.  When you remove the keyword, the associated comma will also be removed (or semi-colon if you have your preferences set to use semi-colons instead of commas.)

I'll give that a shot. Thanks. As for doing a Find & Replace with multiple words, should they be separated by a space " ", as in xyzzy password cave?

No quotes.

What about dealing with a multi-word phrase, like Golden Gate Bridge, should that be placed in quotes, as in "Golden Gate Bridge"?

No quotes.

And lastly, Finding & Replacing by combining both individual words and phrases, would that look like, "Blue Sky" Day "Street Photography" "San Francisco" Building People Kissing?

No quotes unless your metadata actually has quotes.

-Kirk