Anyone has any idea why for some files, when double-clicked in Finder, Spotlight will set kMDItemLastUsedDate to the correct value and for some other files, even in the same folder and opened using the same application (such as preview) it won’t. It can be verified by setting the "All My Files” view in Finder to be sorted by “Date Last Opened”. Add the column, if needed.
I ask about Finder but in my application I use an NSMetadataQuery to collect the same information and my code detects the same files as Finder.
Jacob.