Page 1 of 1

Batch Tagging

Posted: 16 Aug 2023 09:47
by admin
Today I needed the name of each file in its comment, but not being a regular scripter I struggled a bit with an elegant solution. So I added something to make it easier. The new <item...> variables are resolved on a per-item basis as the batch is processed. So a one-liner like this can go a long way:

Code: Select all

tag "Size of <itemname>: <itemprop #1>, <itemprop #hash.md5 n>", , 2; //set each selected item's comment to its name and size and MD5 hash
Result:
item-var.png
Interesting, or can it be done already now?

Re: Batch Tagging

Posted: 16 Aug 2023 10:30
by highend
Only by looping over them => More code

Re: Batch Tagging

Posted: 16 Aug 2023 12:56
by highend
So these new variables only exist in the context of tag?

Re: Batch Tagging

Posted: 16 Aug 2023 12:59
by admin
Yes, so far.

Re: Batch Tagging

Posted: 16 Aug 2023 13:04
by admin
PS: They also work in the GUI: