Autotag Script
Posted: 09 Jul 2014 00:09
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.
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.