Timeline for How to edit "kMDItemXxx" file metadata on macOS?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 1 at 14:09 | comment | added | user150109 | so how do you change these attributes? | |
Aug 14, 2022 at 22:40 | comment | added | Dad |
In general, if you change a property of the file I don't think mdls going to reflect that until you use mdimport to import that specific file again to update the spotlight database. In this case I don't think those attributes are part of the extended attributes of the file ( I don't see them in my sample files).
|
|
Oct 20, 2020 at 23:44 | comment | added | Gordon Davisson |
@nohillside I tried using xattr to set both kMDItemBitsPerSample and com.apple.metadata:kMDItemBitsPerSample on a .tiff file, but mdls continues to show the original (correct for the image data) value. (xattr -l does show the attributes I added.)
|
|
Oct 20, 2020 at 13:25 | vote | accept | fff_ | ||
Oct 20, 2020 at 9:00 | comment | added | nohillside♦ |
You also can use xattr to modify some of them. Not sure what happens if you use it to change kMDItemFSName though
|
|
Oct 20, 2020 at 4:35 | history | answered | Gordon Davisson | CC BY-SA 4.0 |