Is there a way to batch edit MacOS comment metadata 'MDItemFinderComment'?
For example I have multiple files with comment like this:
file 1 apple NEW
file 2 orange NEW
file 3 grape NEW
I would like to batch remove the word 'NEW' from them
Using exiftool, you could use this command:
exiftool '-MDItemFinderComment<${MDItemFinderComment;s/ NEW$//}' /path/to/files/
This command applies regex to strip away (space)NEW from the end of the MDItemFinderComment in all files in the target directory. Add the -r (-recurse) option to recurse into subdirectories