I want to strip/change some extended attributes from some mp3 files that I have, but cannot seem to find any way how.
I used mdls
to list out the full metadata of a file, and get a number of items beyond the average metadata, such as kMDItemComment
and kMDItemAudioEncodingApplication
(these are a couple that I'd like to delete).
However, trying to use the xattr
command does not work. Simply using xattr filePath
returns no list of attributes, which it does with other file types. When I try changing it anyway with a xattr -d com.apple.metadata:kMDItemComment foo/bar/fileName.mp3
, I get an output of "No such xattr: com.apple.metadata:kMDItemComment"
Why aren't any of the attributes accessible through xattr? Are there other commands or freeware I can download to successfully access and change these properties of the files? Thanks in advance!