有没有一种方法可以批量编辑MacOS注释元数据“MDItemFinderComment”?
例如,我有多个文件,注释如下:
file 1 apple NEW file 2 orange NEW file 3 grape NEW
我想批量删除“新”这个词。
发布于 2022-03-28 03:00:40
使用出口工具,您可以使用以下命令:
exiftool '-MDItemFinderComment<${MDItemFinderComment;s/ NEW$//}' /path/to/files/
此命令应用regex将目标目录中的所有文件中的(space)NEW从MDItemFinderComment的末尾去掉。将要递归的)选择权添加到子目录
(space)NEW
MDItemFinderComment
https://stackoverflow.com/questions/71639756
相似问题