Looking for Files with Blank Metadata
This is a fun one, but here goes:
I have an indeterminate number of corrupted music files hanging out on my hard drive. By "corrupted" I mean that while they look fine in the Music app, they don't play; the app just skips over them and pretends like nothing happened. When you locate the file itself, Preview doesn't work. You hit the space bar and it gives you just a shot of the album art, if any exists.
One thing I eventually noticed about the corrupted files is that some of the metadata that should be present against each file isn't, in fact, there, when you view info about the file in Finder. For example, a "good" file will show:
- Created
- Modified
- Title
- Duration
- Authors
- Audio channels
- Sample rate
- Album
- Musical Genre
- Year Recorded
While a "bad" file off the same album shows:
- Created
- Modified
- Last opened
- Duration
- Audio channels
- Sample rate
As such, it seems to me that if I could search my entire music collection for tracks where the pieces of metadata are blank, I could round up the problematic tracks fairly quickly, but I haven't yet figured out a way to do that. Any help would be appreciated!
MacBook Pro 16″, macOS 12.1