» Welcome Guest
[ Log In :: Register ]

 

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

Topic: Variable number of fields in name, How do I delete the next-to-last?< Next Oldest | Next Newest >
calberga
Ancient Board Spirit



Group: Awaiting Authorisation
Posts: 254
Joined: Oct. 2002
Posted: July 13 2007,22:57

I have some files with a variable number of fields, seperated by spaces (don't ask!;).  I would like to delete the next-to-last such field.  Is there any way to do this?
Back to top
Profile PM 
noddy
Board Veteran



Group: Members
Posts: 97
Joined: Feb. 2004
Posted: July 18 2007,03:06

Can you give us some examples of what fields you have data in, and which field name you wish to clear?
And perhaps a sample of some existing data?

Edited by noddy on July 18 2007,03:08

--------------
Cheers,
Bruce.
www.audio2u.com
The home of quality podcasts
Back to top
Profile PM 
calberga
Ancient Board Spirit



Group: Awaiting Authorisation
Posts: 254
Joined: Oct. 2002
Posted: July 18 2007,05:57

Sure, but be warned, these are not .mp3 files, but rather .jpg files, which Mp3/Tag Studio is just great at renaming, via direct file rename, or rename from list.

04-12 (004) am Portovenere 02 [S].jpg
04-13 (005) am Cararra 47 [C].jpg
04-21 (028) pm Monte Sant'Angelo 02 [C].jpg
04-27 (012) Aspromonte 06 [S].jpg
04-29 (014) am Up Mount Etna 03 [C].jpg

That should be enough, except to say that there are 2715 files in 50 directories.  In each case I want to strip out the two digit number preceeding the [, which is the penultimate token when a space is taken as the seperator.  Thus the results should be:

04-12 (004) am Portovenere [S].jpg
04-13 (005) am Cararra [C].jpg
04-21 (028) pm Monte Sant'Angelo [C].jpg
04-27 (012) Aspromonte [S].jpg
04-29 (014) am Up Mount Etna [C].jpg
Back to top
Profile PM 
calberga
Ancient Board Spirit



Group: Awaiting Authorisation
Posts: 254
Joined: Oct. 2002
Posted: July 19 2007,16:20

Since no one seems to have any ideas, I did some preliminary renaming, to flatten the directories and make it possible to reconstruct them, then tried to create a filename list.  But now I can't get the program to output the filenames of the .jpg files, not even using filtering.  I probably have something wrong, because I thought I had seen file lists with non-.mp3 filenames, but perhaps my memory is faulty.

Anybody?????
Back to top
Profile PM 
calberga
Ancient Board Spirit



Group: Awaiting Authorisation
Posts: 254
Joined: Oct. 2002
Posted: July 19 2007,16:47

Worse and worse.  It seems that "rename from list" won't work on .jpg files either.  I guess I've had it.  

It is a pity that the great file-name manipulation features are limited, even in cases where no tags are involved.  As far as I can tell, only "direct rename" can be uses.  I'm afraid that it doesn't make sense to me.

Does anyone know any downloadable program which will replicate the file-name funtions of this one, without the needless limitations?

GRRRRRR!
Back to top
Profile PM 
Magnus Brading
Almighty Author



Group: Super Administrators
Posts: 2751
Joined: Aug. 2002
Posted: July 23 2007,16:29

Ok, back from vacation!

I would simply use the following templates in the direct file rename tool:

Input:
<Custom1><TRASH:4>[<TRASH>.jpg

Output:
<Custom1>.jpg

:)

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



Group: Awaiting Authorisation
Posts: 254
Joined: Oct. 2002
Posted: July 25 2007,22:16

Thanks -- now why didn't I think of that?  I have (almost) never used the fixed length fields, I guess, and don't remember their existence.
Back to top
Profile PM 
6 replies since July 13 2007,22:57 < Next Oldest | Next Newest >

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