Hi so I'm at my wits end coz I am trying to remove xattr data in an image file that is a "Where from" xattr data. This is on a Mojave mac.
This data is written via chrome browser for mac whenever an image is downloaded via this browser.
So I tried this command:
xattr -d com.apple.metadata:kMDItemWhereFroms test.jpg
but it shows the following result:
xattr: test.jpg: No such xattr: com.apple.metadata:kMDItemWhereFroms
How do I remove this data from the image file then? Thanks in advance!
xattr
command works for me. BTW You either need to change directorycd ...
to, or use the full path to the target file. Also, that error message is appropriate if the target file does not have that extended attribute set. – user3439894 Jul 24 '19 at 16:36ls -l@ /path/to/filename
. Best to use absolute paths, nottest.jpg
, it might be picking up some othertest.jpg
– smci Jul 24 '19 at 21:56