Autotag Script

Discuss and share scripts and script files...
Post Reply
neil9090
Posts: 64
Joined: 28 Jun 2014 00:09

Autotag Script

Post by neil9090 »

I wanted to create a script to allow selection of folder(s) or file(s), then to tag them based on some filename criteria automatically.

More information within script.

Creates XYData\AutoTag folder
Creates example.txt file within autotag folder
Creates ini file in the location of the autotag.xys file

Logic of script:
The script obtains a list of files based on selection in XY;
Obtains a list of files in subdirectories.
Each file is tested against the autotag match files.
Each autotag match file, contains lines of text with up to 4 columns of data separated by |
e.g.
matchfilenamespec*|tags put here|foldermatch|movetofolder
if filename is like matchfilenamespec then tag the file with "tags put here"
if the filename matches and the movetofolder has been provided the file will be automatically moved to that location.

Setup instructions within file.

Changes:
0.2 Fixed some AllowFileMoves issues.
Attachments
AutoTag.xys
Version 0.2 11/07/2014
(13.55 KiB) Downloaded 359 times
AutoTag.xys
Version 0.1 07/07/2014
(13.09 KiB) Downloaded 271 times

autocart
Posts: 1246
Joined: 26 Sep 2013 15:22

Re: Autotag Script

Post by autocart »

Just saying thank you for putting effort into this topic. :appl:
It seems to be so lowly appreciated by others, since nobody comments. I just discovered it.
I think XYplorer still has a lot to improve for tagging to get where it should be. But thx to you for trying to help out.

Before I really start using file-tagging in XYplorer, I would need at least 2 more things, though:
A command that lets me "repair" a tag-database, meaning re-define the paths of orphaned files in an efficient manner.
A script similar to yours that will automatically tag any new file that matches (not manually).

acm610154
Posts: 1
Joined: 11 Oct 2018 18:58

Re: Autotag Script

Post by acm610154 »

Hello, thanks for your Script,
I'm wondering if I want to add the tag only on the folder instead of the file inside.
what should I do to alter the script?

Post Reply