Page 1 of 1

Is there a script command to add a tag?

Posted: 09 Dec 2021 17:11
by Norn
Script+AHK=quickly add common tags

Re: Is there a script command to add a tag?

Posted: 09 Dec 2021 17:15
by highend
tag, tagitems()?

Re: Is there a script command to add a tag?

Posted: 09 Dec 2021 17:52
by Norn
Thx,but it doesn't work...

Re: Is there a script command to add a tag?

Posted: 09 Dec 2021 17:54
by highend
And we need to guess what exactly doesn't work?

Re: Is there a script command to add a tag?

Posted: 09 Dec 2021 18:11
by Norn
I'm a script layman,just random test scripts...

I found additional commands at XYplorerHelp.pdf:
Examples
tag "Green"; //set label "Green" to all selected items
tag 3; //set label #3 to all selected items
tag 3, <curitem>; //set label #3 to current item
tag 0, <curitem>; //remove any label from current item
tag 3, "C:\foo.txt|D:\bar.txt"; //set label #3 to these items
tag; //remove all labels from all selected items
tag "cats,dogs", , 1; //add tags "cats" and "dogs" to all selected items
tag "cats,dogs", , 1, 1; //set tags "cats" and "dogs" to all selected items
tag "cats,dogs", , 1, 2; //remove tags "cats" and "dogs" from all selected items
tag , , 1, 2; //remove all tags from all selected items
tag "wow", , 2; //set comment "wow" to all selected items
tag , , 2; //remove all comments from all selected items
tag "wow", , "ex3"; // set "wow" to Extra Tag 3 of all selected items