dcFilename Tags

Discuss and share scripts and script files...
Post Reply
rur54
Posts: 46
Joined: 12 Feb 2015 19:52

dcFilename Tags

Post by rur54 »

Hi,
I am starting to add tags into filename as it is easier for cross platform searching and grandparents :)
They do not have to worry about getting program for this metadata and program for that metadata or figuring out fancy search terms to search files.

I looked into TagControl and FlatFileManager but did not like how tags were handled (commas - nothing wrong with it just personal preferences) and there were some issues removing tags or maybe it was user error.
As I am not a programer (or am very novice) it was harder to fix existing script.
So I decided to make a new one line by line. It was easier.

I wanted to have something more "clean" (what ever makes sense to me).

Code: Select all

Filename [tag1 tag2].ext
-tags split by space
-one space between each tag and tag container [ ] one space away from filename
-any duplicated names were removed to reduce length as I do not need them like:
[car show, art show, one city, second city]
would be
[car art show one second city]

So this is what I have.
Adding will split words from inputselect by "space" and compare each word with existing tags in filename. Will add them if not present and will add all tags to tag.dat
Same with remove.
Might be long and I am sure you could shorten it but for me it is easier to spot things and fix it if needed.

Put these into your <xydata>\scripts folder

to add tags
::load "dcTagAdd";

to remove
::load "dcTagRemove";

Hope someone finds some use.
Let me know if there are any issues...
cheers
Attachments
dcTagRemove.xys
(3.07 KiB) Downloaded 150 times
dcTagAdd.xys
(3.56 KiB) Downloaded 134 times

Post Reply