Page 1 of 1

Multi Rename - Counter reset?

Posted: 2007-05-30, 11:44 UTC
by ses72
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]

Posted: 2007-05-30, 12:26 UTC
by TLis
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.

Posted: 2007-05-30, 21:19 UTC
by StatusQuo
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
Hm, I thought Siren (Link in the other thread) would be perfect for this, if using something external anyway.
Siren can also be controlled via command line, a favourite configuration can be stored in a file. What's missing in this solution?

Posted: 2007-05-30, 22:48 UTC
by TLis
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.

Posted: 2007-05-30, 23:56 UTC
by StatusQuo
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 ...
Dash separators can be achieved in Siren with substrings:

Code: Select all

%dmd(1,4)-%dmd(5,2)-%dmd(7,2)_%nc.%e
creates the file date, separated by dashes, followed by the counter (%dmd replaced by %Xdtd for EXIF instead of file date, I think).
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.
OK, here the limit seems reached. :)
Maybe a suggestion for a future version of Siren...

Posted: 2007-05-31, 08:43 UTC
by TLis
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:

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 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.

Posted: 2007-05-31, 11:14 UTC
by RID500
StatusQuo wrote:
TLis wrote:I would like also the renamed files to be properly distributed to the subfolders named according to the date of the picture. ...
OK, here the limit seems reached. :)
Maybe a suggestion for a future version of Siren...
For this above

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

Posted: 2007-05-31, 11:26 UTC
by TLis
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 ...

Posted: 2007-05-31, 12:34 UTC
by RID500
TLis wrote:2RID500: Why should we request an enhancement in Siren, if we could have it in TC directly? ...
First: Because someone talked about there is missing something in Siren. So tell this the autor of Siren.
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)

Posted: 2007-05-31, 12:56 UTC
by TLis
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 ... ?

Posted: 2007-05-31, 23:22 UTC
by StatusQuo
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).
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.

2RID500
THX for the link, I'll put this on my ToDo list...

Posted: 2007-06-01, 08:15 UTC
by TLis
StatusQuo wrote:Dash separators can be achieved in Siren with substrings:

Code: Select all

%dmd(1,4)-%dmd(5,2)-%dmd(7,2)_%nc.%e
creates the file date, separated by dashes, followed by the counter (%dmd replaced by %Xdtd for EXIF instead of file date, I think).
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.

Posted: 2007-06-01, 10:51 UTC
by RID500
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.
Yes you can set the date/time format in the option of Siren 2.0:
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)

Posted: 2007-06-03, 19:26 UTC
by ses72
Hello to all,
thanks for all replies! I see I'm not the only one that could need the counter reset. Hopefully it will find the way to TC one day.

I took a look at Siren and it is has the function I'm missing in TC. Thanks for this hint.


Thanks
Sebastian