Page 1 of 1

[Apple Bug] Spotlight doesn't re-index image file although GraphicConverter updates modification date

Posted: Wed Nov 23, 2022 2:02 pm
by porg
GraphicConverter should trigger re-indexing with Spotlight when saving in place after having manipulating certain image metadata.png
GraphicConverter should trigger re-indexing with Spotlight when saving in place after having manipulating certain image metadata.png (602.91 KiB) Viewed 1687 times

Re: GraphicConverter should trigger re-indexing with Spotlight when saving in place after having manipulating certain im

Posted: Wed Nov 23, 2022 2:15 pm
by forum_adm
The file get a different modification date. So, Spotlight should start to reindex the file itself.
So, Apple should fix this.

Re: GraphicConverter should trigger re-indexing with Spotlight when saving in place after having manipulating certain im

Posted: Wed Nov 23, 2022 2:16 pm
by porg
So this is an Apple bug then, right?

Re: GraphicConverter should trigger re-indexing with Spotlight when saving in place after having manipulating certain im

Posted: Wed Nov 23, 2022 2:26 pm
by forum_adm
Yes, normally any file modification cause an update of the Spotlight index. But this may take a bit and depends onto the Apple schedule.

Re: GraphicConverter should trigger re-indexing with Spotlight when saving in place after having manipulating certain im

Posted: Wed Nov 23, 2022 2:45 pm
by porg
Hmmm…
• that old folder still shows the outdated Spotlight info regarding color profile now 2 hours later.
• created a folder into that folder as a signifier "something new is here". Still the PNGs remain with the outdated color profile. Both in HoudahSpot when refreshed and in mdls, so I'm certain.
• Heck I even ran touch certain-file.png and kMDItemProfileName = "Colour LCD"
• I wonder if it macOS ever picks up those files for re-indexing. Maybe only on system restart.
• I guess picking up is not even the problem. But removing an attribute that is meanwhile gone (=null) maybe is the problem.

Re: GraphicConverter should trigger re-indexing with Spotlight when saving in place after having manipulating certain im

Posted: Sat Nov 26, 2022 12:33 am
by porg
Closing this is definitely an Apple / macOS bug
• Also 3 days later that old folder still shows the outdated Spotlight info regarding color profile.
• Duplicating a file → Duplicated file instantly shows the correct Spotlight info (Color Profile: None)
• Terminal: touch old-file → Spotlight info stays outdated (Color Profile: Color LCD)

To conclude: Found two ways in total to fix this situation:

• Method 1: Duplicate folder. In the duplicate the files are correctly indexed then. (This step is what I had presented here earlier) Now some additoonal steps: Delete the digital. And remove the " copy" suffix from the duplicated folder to reflect the original folder name again.
- On HFS+ this is slower as the duplication takes additional storage space and time to copy.
+ On APFS which is a copy-on-write filesystem, this method is near instant, so no worry. And its only a few shortcuts happening in 3 seconds:
⌘ D to duplicate
⌘⌫ to delete the still selected original folder.
( If sorted by A-Z then focus automatically goes to the duplicate folder.)
↓ or ↑ if nonetheless you need to select the duplicate folder
⏎ to edit folder name
↓ to jump to end
⌥ ⌫ to delete last word " copy" from filename
⏎ to confirm changed folder name

• Method 2: Less aggressive/destructive. And faster on HFS+. Open System Preferences > Spotlight > Privacy. Drag'n'drop the folder with files with outdated Spotlight index info there. Wait 1-2 secs. Remove the file from the Privacy section again. Now all your files get re-indexed (happens in an instant) and show correctly.