Batch Tagging

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
admin
Site Admin
Posts: 66102
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Batch Tagging

Post 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?
To see the attached files, you need to log into the forum.

highend
Posts: 14926
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Batch Tagging

Post by highend »

Only by looping over them => More code
One of my scripts helped you out? Please donate via Paypal

highend
Posts: 14926
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Batch Tagging

Post by highend »

So these new variables only exist in the context of tag?
One of my scripts helped you out? Please donate via Paypal

admin
Site Admin
Posts: 66102
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Batch Tagging

Post by admin »

Yes, so far.

admin
Site Admin
Posts: 66102
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Batch Tagging

Post by admin »

PS: They also work in the GUI:
To see the attached files, you need to log into the forum.

Post Reply