Code: Select all
end(getinfo("CountSelected") < 1), "At least one File or Folder must be selected!";
$lstF = get(selecteditemspathnames);
$a = input("Enter Tag to Add", , ,m);
foreach ($tkF, $lstF, "<crlf>") {
$tst = exists($tkF);
IF ($tst == "0") { end 1, "Script will close - No items were selected!"; }
ELSEIF ($tst == "1") { tag "$a", "$tkF", 1; continue 2; }
ELSEIF ($tst == "2") { }
$lst = folderreport("items", "r", $tkF, "r");
foreach ($tk, $lst, "<crlf>") {
tag "$a", "$tk", 1;
}
tag "$a", "$tkF", 1;
}
status "Tagging done!", "339933";cat
dog
mouse
The added tag is catdogmouse.
What am I missing? Cheers.
XYplorer Beta Club