我想在Lightroom数据库中对所有文件进行大规模重命名来自:xxx_2.nef到:xxx.nef
即,对于每个图像,如果名称包含_2,则将其删除。
击中哪些表和列?
最终使用sql lite打开.lrcat文件:运行此查询以解决问题:
update AgLibraryFile
set basename = substr(basename, 0, length(basename) -1),
idx_filename = substr(basename, 0, length(basename) -1) || '.' || extension,
lc_idx_filename = substr(basename, 0, length(basename) -1) || '.' || extension,
originalFileName = substr(basename, 0, length(basename) -1) || '.' || extension
WHERE basename like '%-2'