Tag Manager

Discuss and share scripts and script files...
Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: Tag Manager

Post by Muroph »

i've made a very small but important change to the script.
now the ids assigned to files in the database will only be updated if the tag id has actually changed.
this means it's:
-faster.
-less likely to mess up your tags, since it will only touch your database when absolutely necessary.

i wonder why i didn't think of it sooner:
if the tag doesn't have to be deleted,

Code: Select all

if($tagi<16)
is now

Code: Select all

if($tagi<16 && $tagi!=$index)
:lol:
i also fixed a small inconsistency in the tag color when creating a new tag (# was missing).
admin wrote:Could you next time please write Undo as a script, so that I don't have to do it.
are you working on it?
i had thought of writing me an "undo delete" script, but this would be pointless if the official undo is underway. :)
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

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

Re: Tag Manager

Post by admin »

Muroph wrote:
admin wrote:Could you next time please write Undo as a script, so that I don't have to do it.
are you working on it?
i had thought of writing me an "undo delete" script, but this would be pointless if the official undo is underway. :)
Yes, I will work on Undo pretty soon. I might even be the next big thing.

May I ask how you would do an "undo delete" script? I'm not aware of a "restore" function in scripting...

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: Tag Manager

Post by Muroph »

admin wrote:May I ask how you would do an "undo delete" script? I'm not aware of a "restore" function in scripting...
i would write a script to delete files, which would also log their original location.
for the actual undo i'd use another script to look up what file inside the recicle bin matched the last deleted file(s), move the back to their original location and restore their names.

but i'm not sure if it would be possible (or easy :D ).

an alternative would be to look for a command line tool that could restore a delete file.
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

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

Re: Tag Manager

Post by admin »

Muroph wrote:
admin wrote:May I ask how you would do an "undo delete" script? I'm not aware of a "restore" function in scripting...
i would write a script to delete files, which would also log their original location.
for the actual undo i'd use another script to look up what file inside the recicle bin matched the last deleted file(s), move the back to their original location and restore their names.

but i'm not sure if it would be possible (or easy :D ).

an alternative would be to look for a command line tool that could restore a delete file.
"matched the last deleted file" -- what kind of "match"?? I think you cannot do a restore without hacking the "INFO2" database in the recycler...

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: Tag Manager

Post by Muroph »

admin wrote:"matched the last deleted file" -- what kind of "match"?? I think you cannot do a restore without hacking the "INFO2" database in the recycler...
that's the idea. :)
some time ago i read about a way to retrive the references from info2.
i have that article saved somewhere.
if only i could find it. :|
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

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

Re: Tag Manager

Post by admin »

Muroph wrote:
admin wrote:"matched the last deleted file" -- what kind of "match"?? I think you cannot do a restore without hacking the "INFO2" database in the recycler...
that's the idea. :)
some time ago i read about a way to retrive the references from info2.
i have that article saved somewhere.
if only i could find it. :|
Tell me if you find it.

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: Tag Manager

Post by Muroph »

another new version.
hopefully the last for a while. :)

Code: Select all

TO DO:
-Better "up" and "down" buttons OR sorting by drag'n'drop.
-If you add a new tag and then cilck to delete it, remove it from the list.
done! :D

click in any input box will focus the respective tag, then you can move it using the up and down buttons.
the focused tag's row is highlighted in blue.

also:
tags marked to be deleted now have their id column colored in red.
new tags have it in green.
invalid color codes have an orange text box.

now you need to double-click the color boxes to open the color selector.
this makes color codes easier to edit manually.

i also fixed a couple of bugs in the html.
admin wrote:Tell me if you find it.
sure!
there's only one problem:
it might be in my old pc, at my parents' house, 700km away from me... :|
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: Tag Manager

Post by Muroph »

Muroph wrote:another new version.
hopefully the last for a while. :)
well, looks like i was out of luck. :(
i found 3 bugs which could be easily triggered.
2 of them were caused by typos. :x

one thing led to another and in the end i made many changes in v2.2:
-fixed those bugs (duh!).
-invalid names are highlighted. names can't be blank nor contain ";" or "|".
-now the tags that won't be deleted are checked for invalid values when you click "save". if any is found, you'll have to fix them before proceeding.
-general revision and many small changes.

@Don
i know it's unlikely to happen, but if you and use ";" or "|" in a tag's name, it will cause trouble after restarting.
it might even mess up all your tagged files! :shock:
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

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

Re: Tag Manager

Post by admin »

Muroph wrote:i know it's unlikely to happen, but if you and use ";" or "|" in a tag's name, it will cause trouble after restarting.
it might even mess up all your tagged files! :shock:
Oh, damn, why didn't I think of that... thanks.

lukescammell
Posts: 744
Joined: 28 Jul 2006 13:15
Location: Kent, UK
Contact:

Re: Tag Manager

Post by lukescammell »

Muroph, this script rocks!

Any chance you could make one that when I right click on a file I get a "Tag" option that then pretty much pops up this window, only with the current tags listed (with colours and labels) and a bunch of check boxes? That would make tagging much easier :)
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)

Muroph
Posts: 561
Joined: 21 Aug 2007 16:13

Re: Tag Manager

Post by Muroph »

lukescammell wrote:Muroph, this script rocks!
thanks! :D
lukescammell wrote:Any chance you could make one that when I right click on a file I get a "Tag" option that then pretty much pops up this window, only with the current tags listed (with colours and labels) and a bunch of check boxes? That would make tagging much easier :)
on right click?
not until we get CEA. :wink:
and it would be too much work to write something that is already easy enough to do (using the "tag" TB). :P
My shared scripts:
TeraCopy Integration, Tag Manager, Comments Menu, Text Replacer, Image and Media Tools, Checksum Calculator, Video Calculator
only 5 URLs are allowed on the sig...

lukescammell
Posts: 744
Joined: 28 Jul 2006 13:15
Location: Kent, UK
Contact:

Re: Tag Manager

Post by lukescammell »

TB?
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)

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

Re: Tag Manager

Post by admin »

lukescammell wrote:TB?
Toolbar

lukescammell
Posts: 744
Joined: 28 Jul 2006 13:15
Location: Kent, UK
Contact:

Re: Tag Manager

Post by lukescammell »

I was afraid of that... yet another feature I've missed because I've not been reading the change file every day :P Damn I'm glad I'm back working with a professional file manager instead of Finder.

Thanks the pair of you for letting me know this already exists! If I have the tag column showing in the list, I can ALREADY right click in that column and set the tag :D

...ah, but NOT if full row select is on! Don, any chance this behaviour could still work even when full row select is on? Also, I noticed that any columns to the left of the filename are not a part of "full row select", so it's not *really* a full row select is it? Is this by design?
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)

lukescammell
Posts: 744
Joined: 28 Jul 2006 13:15
Location: Kent, UK
Contact:

Re: Tag Manager

Post by lukescammell »

Also, noticed that the "Tag" column (list pane) isn't coloured by the tag colour - shouldn't it be?
Used to update to the latest beta every day. Now I have children instead…
Windows 10 Pro x64 (everywhere except phone…)

Post Reply