» Welcome Guest
[ Log In :: Register ]

 

[ Track this topic :: Email this topic :: Print this topic ]

Topic: Direct File Rename problem, Pattern matches things I don't want< Next Oldest | Next Newest >
calberga
Ancient Board Spirit



Group: Awaiting Authorisation
Posts: 254
Joined: Oct. 2002
Posted: Feb. 12 2007,16:27

I have some .mp3 files which duplicated the filenames of already existing files, so Forté Agent added "1", or "2', etc. to the end of the file name.  I moved the files to seperate directories, but when I tried to rename them, to strip the final digit I get some false positives.

My patterns are:

<Custom1>1.mp3
<Custom1>.mp3

But it acts as if my original filename pattern is:

<Custom1>1<TRASH>.mp3

simply dropping all part of the filename between the first "1" and the ".mp3"., thus, if I have a file named

Foobar #1 is here.mp3

it gets renamed

Foobar #.mp3

How do I tell the program that there should be no text between the "1" and the ".mp3" in the first pattern?

Edited by calberga on Feb. 13 2007,13:29
Back to top
Profile PM 
Magnus Brading
Almighty Author



Group: Super Administrators
Posts: 2751
Joined: Aug. 2002
Posted: Feb. 14 2007,00:20

This is due to special case handling of the file extension in Mp3/Tag Studio, which causes it to be stripped from the filename before processing, thus leaving only "1" as the separator, which (correctly under those circumstances) results in this behavior.

I have now noted this problem for fixing in future versions, but until then you should be able to do a workaround by first performing a rename operation for all files ending in "1", "2", "3" etc (with a file name filter), to add a more unique suffix to these file names, and then use your method but with this suffix as a separator instead of the single digit. The entire operation can of course be stored in a macro.

--------------
Software author and website owner
Back to top
Profile PM WEB 
calberga
Ancient Board Spirit



Group: Awaiting Authorisation
Posts: 254
Joined: Oct. 2002
Posted: Feb. 14 2007,00:47

So:

<Custom1>.mp3
<Custom1>§.mp3

then

<Custom1>n§.mp3
<Custom1>.mp3

for the existing values of "n".

Then

<Custom1>§.mp3
<Custom1>.mp3

to clean up the cases that didn't end in digits should do it?

That would obviate the need to run several filename filters, for final 1, 2, 3, etc.

Or am I still missing something?
Back to top
Profile PM 
Magnus Brading
Almighty Author



Group: Super Administrators
Posts: 2751
Joined: Aug. 2002
Posted: Feb. 14 2007,23:52

You can do it like that too, but the way I suggested, by combining it with the filter functionality of Mp3/Tag Studio, there won't even be any "cases that didn't end in digits" that would have been renamed in the first step.

Both ways are fine though, and once they are recorded into a macro, you won't notice the difference (except that the way I suggested will be a little faster ;))

--------------
Software author and website owner
Back to top
Profile PM WEB 
3 replies since Feb. 12 2007,16:27 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]