Page 1 of 2
Tags - complete list
Posted: 12 Jul 2023 18:53
by TedL1972
Hello,
I am trying to organize all my tags which I have not used in a while and so I may have forgotten some of the existing features.
I have been adding tags recently to documents but when I pull up the tag list those that I created in the past do not show up. I tried "Load Tags Database" but it didn't change the list. If I go on each document and I right click and then select "Add tags to Tag List" and it will add them.
SIs there a way to update the list so that it is a "complete list" of all the existing tags with just one command?
If not, what is the shortest way to make a complete list?
Thank you.
Re: Tags - complete list
Posted: 12 Jul 2023 20:02
by jupe
If you have got one of the tagging buttons on the toolbar such as "Add Tags", right click it "Update Tag List".
Re: Tags - complete list
Posted: 12 Jul 2023 20:32
by TedL1972
Great thanks. I thought there was a way to do it.
Another one if I may is that I have a script that automatically copies documents in folders when the document is tagged with the same name of that particular folder. I realized that when these documents are copied the tags are not copied as well. I do have checked the following:
Configuration | Information | Tags | Copy tags on copy operations
Is there anything else I should change so that the tags are always copied along with the document?
Re: Tags - complete list
Posted: 12 Jul 2023 20:34
by highend
Post the script?
Re: Tags - complete list
Posted: 12 Jul 2023 20:53
by TedL1972
Code: Select all
$saveTo = replace(trim(input("Enter Folder", "Input each folder on a new line!", "F:\FRUITS", "m"), <crlf>), <crlf>, "|");
$tags = replace(trim(input("Enter tag(s)", "Input each tag on a new line!", "Banana<crlf>Orange<crlf>Apple", "m"), <crlf>), <crlf>, "|");
$copyList = "";
foreach($tag, $tags, , "e") {
$tagged = quicksearch("tags:$tag", "*", , "s");
foreach($item, $tagged, <crlf>, "e") {
$item = trim($item);
$tag = trim($tag);
if ($tag != $lastTag) { $copyList .= "<::>$tag" . <crlf>; }
$dstFile = trim($saveTo, "\") . "\" . $tag . "\" . gpc($item, "file");
if !(exists($dstFile)) { $copyList .= $item . <crlf>; }
$lastTag = $tag;
}
}
if !(regexmatches($copyList, "^([a-z]|\\)")) { status "No new item(s) found!", "8B4513", "stop"; end true; }
$copyList = formatlist(replace($copyList, "<::>", , , , 1), "e", <crlf>); // Remove the first separator
setting "BackgroundFileOps", 0;
$count = gettoken($copyList, "count", "<::>");
while ($i++ < $count) {
$section = gettoken($copyList, $i, "<::>");
$tag = gettoken($section, 1, <crlf>);
$itemsToCopy = replace(gettoken($section, 2, <crlf>, , 2), <crlf>, "|");
if ($itemsToCopy) {
$copyToPath = trim($saveTo, "\") . "\" . $tag;
copyto $copyToPath, $itemsToCopy, , 2, 2, 1, 1, 0, 0, , 0, 0;
}
}
wait 10;
status "All new item(s) copied...";
Re: Tags - complete list
Posted: 13 Jul 2023 14:44
by Norn
Occasionally the target item will not be tagged when the source item has a tag and label.
Code: Select all
copyto "D:\T1\", "<curitem>", , 2, 2, 1, 1, 0, 0, , 0, 0;
This seems to work fine:
Code: Select all
copyto "D:\T1\", "<curitem>", , 2, 2, 1, 1
Re: Tags - complete list
Posted: 13 Jul 2023 18:47
by TedL1972
Thanks.
Is this line of code:
Code: Select all
copyto "D:\T1\", "<curitem>", , 2, 2, 1, 1
supposed to replace this one?
Code: Select all
copyto "D:\T1\", "<curitem>", , 2, 2, 1, 1, 0, 0, , 0, 0;
or does it need to be added? I try to run it both ways and I get errors in both instances.
Is "D:\" supposed to be replaced with the actual directory? What's T1?
Re: Tags - complete list
Posted: 13 Jul 2023 20:01
by Norn
I ran it again a few times and it happened again, it's an issue.
Re: Tags - complete list
Posted: 18 Jul 2023 18:40
by admin
You mean this?
Code: Select all
copyto "D:\T1\", "<curitem>", , 2, 2, 1, 1, 0, 0, , 0, 0;
Re: Tags - complete list
Posted: 18 Jul 2023 19:26
by Norn
Both, happen occasionally. . .
Re: Tags - complete list
Posted: 18 Jul 2023 19:57
by admin
Foreground or background operation?
Custom Copy or shell copy?
Re: Tags - complete list
Posted: 18 Jul 2023 20:36
by Norn
Background operation
Custom Copy
Re: Tags - complete list
Posted: 18 Jul 2023 20:43
by admin
I assume background operation is a necessary condition for this issue to happen?
Re: Tags - complete list
Posted: 18 Jul 2023 21:30
by Norn
I unchecked both and it still happens.
Re: Tags - complete list
Posted: 18 Jul 2023 21:37
by admin
Norn wrote: ↑18 Jul 2023 19:26
Both, happen occasionally. . .
Both? Which both?