After the script has read the label and the tags,
it needs to rewrite the next part of the file name:
" [From Label; From Tags]"
and then delete that part, right?
Or a script could use the file name alone,
locate that part and delete it,
which seems simpler.
Either way, at some point the script should
or something like that.
I'm not familiar with the "script" language so I can only guess how it should look
after the script finds the part in question:
Code: Select all
end (compare(<xyver>, "18.00.0021", "v") == -1), "You need at least v18.00.0021 of XYplorer, aborted!";
$labels = regexmatches(readfile("<xydata>\tag.dat", , 2000), "^((.+?)\|([A-F0-9]{6})?\|([A-F0-9]{6})){7,}$");
$labels = trim(regexreplace($labels, "\|([A-F0-9]{6})?\|[A-F0-9]{6};?", "|"), "|");
foreach($file, <get "SelectedItemsPathNames" <crlf>>, <crlf>, "e") {
// Ignore folders
if (exists($file) == 2) { continue; }
// Find [<label name>;<tag>]