Multi Rename - Counter reset?
Moderators: Hacker, petermad, Stefan2, white
Multi Rename - Counter reset?
I'm using TC for a long time. Especially the multi rename tool is very helpfull when renaming my photos. But what I miss there is the posibility to restart the counter e.g. on new file date. I rename my files like this
[Y]-[M]-[D]_[C]
I would like the counter restarting when the date has changed ...
2007-04-28_1.jpg
2007-04-28_2.jpg
2007-04-28_3.jpg
2007-04-28_4.jpg
2007-04-30_1.jpg
2007-04-30_2.jpg
2007-04-30_3.jpg
Is it possible to add this feature to TC or is there an add on that supports this?
Thanks
Sebastian[/b]
[Y]-[M]-[D]_[C]
I would like the counter restarting when the date has changed ...
2007-04-28_1.jpg
2007-04-28_2.jpg
2007-04-28_3.jpg
2007-04-28_4.jpg
2007-04-30_1.jpg
2007-04-30_2.jpg
2007-04-30_3.jpg
Is it possible to add this feature to TC or is there an add on that supports this?
Thanks
Sebastian[/b]
See my thread http://www.ghisler.ch/board/viewtopic.php?t=15477&highlight=, where I have presented a similar problem.
I am working on a Python script to achieve the renaming, while avoiding the name clashes by appending a counter. This script could be then attached to a button, and used instead of the MRT.
I am working on a Python script to achieve the renaming, while avoiding the name clashes by appending a counter. This script could be then attached to a button, and used instead of the MRT.
Hm, I thought Siren (Link in the other thread) would be perfect for this, if using something external anyway.TLis wrote:See my thread http://www.ghisler.ch/board/viewtopic.php?t=15477&highlight=, where I have presented a similar problem.
I am working on a Python script to achieve the renaming
Siren can also be controlled via command line, a favourite configuration can be stored in a file. What's missing in this solution?
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
-- TC starter menu: Fast yet descriptive command access!
It would be almost perfect, although the %Xdt code does not separate the date elements with the dash, as required by ses72. At least, I have not found a way to request the separators ...
I would like also the renamed files to be properly distributed to the subfolders named according to the date of the picture. My Python script is going to handle this in addition to provide the dashes between the date elements.
I would like also the renamed files to be properly distributed to the subfolders named according to the date of the picture. My Python script is going to handle this in addition to provide the dashes between the date elements.
Dash separators can be achieved in Siren with substrings:TLis wrote:It would be almost perfect, although the %Xdt code does not separate the date elements with the dash, as required by ses72. At least, I have not found a way to request the separators ...
Code: Select all
%dmd(1,4)-%dmd(5,2)-%dmd(7,2)_%nc.%e
OK, here the limit seems reached.TLis wrote:I would like also the renamed files to be properly distributed to the subfolders named according to the date of the picture. My Python script is going to handle this in addition to provide the dashes between the date elements.

Maybe a suggestion for a future version of Siren...
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
-- TC starter menu: Fast yet descriptive command access!
Indeed, StatusQuo, I did not think about the substrings ...
By the way, wouldn't it be nice, if TC supported the collision counter, like in Siren, both unconditional, and the one, that avoids the counter if no collision is detected (it might be tricky to avoid the leading separator here ...).
The other suggestion is, that we could enter the path component in the Name field in the MRT. Examples:
This first example would move the renamed file into the subfolder <year>-<month>-<day> (creating it, if necessary) under the current folder of the original file. The second example moves the renamed file into a similar subfolder under a fixed folder E:\Photos.
This would enable us to achieve not only the renaming, but also the distribution of the files among the subfolders, all using the MRT only.
By the way, wouldn't it be nice, if TC supported the collision counter, like in Siren, both unconditional, and the one, that avoids the counter if no collision is detected (it might be tricky to avoid the leading separator here ...).
The other suggestion is, that we could enter the path component in the Name field in the MRT. Examples:
Code: Select all
1. [=exif.DateOriginal.Y-M-D]\[=exif.DateOriginal.Y-M-D]_[=exif.TimeOriginal.hms]
2. E:\Photos\[=exif.DateOriginal.Y-M-D]\[=exif.DateOriginal.Y-M-D]_[=exif.TimeOriginal.hms]
This would enable us to achieve not only the renaming, but also the distribution of the files among the subfolders, all using the MRT only.
For this aboveStatusQuo wrote:OK, here the limit seems reached.TLis wrote:I would like also the renamed files to be properly distributed to the subfolders named according to the date of the picture. ...
Maybe a suggestion for a future version of Siren...
and for
> the posibility to restart the counter e.g. on new file date.
you should post an request in Siren Forum
http://scarabee.software.free.fr/forum/index.php
/join #TCMD Chat at irc.freenode.net - Today's newbies are tomorrow's experts.
Actually, I think, that implementing the ability to provide the path components in the Name field of the MRT should be a fairly easy task, as it involves the formation of the target path only, whereas the standard rename / move API calls can still be used. There would be some problems, if the list of files after renaming is reloaded to perform a second rename, as then the files may be on different paths. Anyway, I believe, that this would be a welcome enhancement to the MRT.
2RID500: Why should we request an enhancement in Siren, if we could have it in TC directly? The picture file renaming is so far the only renaming task, that I have encountered, that I could not perform in TC alone ...
2RID500: Why should we request an enhancement in Siren, if we could have it in TC directly? The picture file renaming is so far the only renaming task, that I have encountered, that I could not perform in TC alone ...
First: Because someone talked about there is missing something in Siren. So tell this the autor of Siren.TLis wrote:2RID500: Why should we request an enhancement in Siren, if we could have it in TC directly? ...
Second: for all kind of work (rename, FTP, compare,...) there are special applications to do this better then one "jack of all trades device".
Of course i don't have anything against improve the MRT (i think here about the "[X] search&replace except for the extension"-problem too)
/join #TCMD Chat at irc.freenode.net - Today's newbies are tomorrow's experts.
RID500, see the first post in this thread - we started talking about something missing in the MRT. Then StatusQuo mentioned Siren, as an alternative. I don't care about the improvements in Siren (which I don't use) as much as I do about improving TC (which I use heavily).
The current situation looks, like in order to achieve the requested functionality, some improvements would have to be made in either product. Then I vote for improving TC, as I don't think, it would be too difficult.
As to your statement about using specialised application for particular uses, I partially agree, provided, that we don't exaggerate. The number of small, specific applications is a blessing but also a curse of all the Linux/Unix systems. A good compromise is what I am looking for ...
We have already quite a powerful tool for file renaming in TC, especially, as plugins can be involved. Why not improve it just a bit more ... ?
The current situation looks, like in order to achieve the requested functionality, some improvements would have to be made in either product. Then I vote for improving TC, as I don't think, it would be too difficult.
As to your statement about using specialised application for particular uses, I partially agree, provided, that we don't exaggerate. The number of small, specific applications is a blessing but also a curse of all the Linux/Unix systems. A good compromise is what I am looking for ...
We have already quite a powerful tool for file renaming in TC, especially, as plugins can be involved. Why not improve it just a bit more ... ?
Yes, Siren is only a workaround, as long as TC's MRT doesn't support certain things. But it's freeware and useable from within TC.TLis wrote:I don't care about the improvements in Siren (which I don't use) as much as I do about improving TC (which I use heavily).
2RID500
THX for the link, I'll put this on my ToDo list...
Who the hell is General Failure, and why is he reading my disk?
-- TC starter menu: Fast yet descriptive command access!
-- TC starter menu: Fast yet descriptive command access!
I have just read in the Siren's forum (see http://scarabee.software.free.fr/forum/viewtopic.php?id=20), that the future version will support date formatting feature, so the problem of missing dashes will be then eliminated.StatusQuo wrote:Dash separators can be achieved in Siren with substrings:creates the file date, separated by dashes, followed by the counter (%dmd replaced by %Xdtd for EXIF instead of file date, I think).Code: Select all
%dmd(1,4)-%dmd(5,2)-%dmd(7,2)_%nc.%e
Yes you can set the date/time format in the option of Siren 2.0:TLis wrote:I have just read in the Siren's forum (see http://scarabee.software.free.fr/forum/viewtopic.php?id=20), that the future version will support date formatting feature, so the problem of missing dashes will be then eliminated.
Standard is: %Y%m%d_%H%M%S
You could use: %Y-%m-%d
One could even add or subtract automatically: nHour nMin nSec
And you can even use this "on the fly" like
"Holiday in %Xdo{"%Y" on day "%d"}"
(The Beta is announced to be available in a few weeks)
Last edited by RID500 on 2007-06-03, 20:22 UTC, edited 1 time in total.
/join #TCMD Chat at irc.freenode.net - Today's newbies are tomorrow's experts.