INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Adding track numbers to filename  (Read 2614 times)

goatherder

  • Galactic Citizen
  • ****
  • Posts: 261
Adding track numbers to filename
« on: September 09, 2005, 01:56:40 pm »

I'd like to add track numbers to the start of filenames, but I don't want it added if the filename has it already (i.e. I don't want to end up with 01-01-trackname.mp3).  Is this possible through MC11?
Logged

221bBS

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 703
Re: Adding track numbers to filename
« Reply #1 on: September 09, 2005, 03:41:30 pm »

1. Select the files
2. Select Tools > Library Tools > Rename Files from Properties...
    ---Uncheck Directories
    ---Check Filename
    ---Next to "Rule:" write: [Track #]-[Name]
3. Press "OK"
Logged

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9124
Re: Adding track numbers to filename
« Reply #2 on: September 09, 2005, 03:41:58 pm »

like 221bbs says...

[track #]-[name]

if the file already matches the template, it will be skipped.

============

The search options within MC are many and varied. Open the help file (help > contents or press F1) and from the contents tab, browse to "Create and edit files and libraries" and read up on "Smartlists" and "Search" paying particular attention to the "Smartlist and Search - Rules and Modifiers" section found under smartlists.

Set aside a little time to read those sections I referenced above and you will soon have the awesome power of MC's search abilities under your control :)

jgreen

  • Citizen of the Universe
  • *****
  • Posts: 2419
Re: Adding track numbers to filename
« Reply #3 on: September 09, 2005, 03:59:47 pm »

"if the file already matches the template, it will be skipped."

How does it do that? 
Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20062
Re: Adding track numbers to filename
« Reply #4 on: September 09, 2005, 04:47:12 pm »

Quote
How does it do that?

It just does
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

jgreen

  • Citizen of the Universe
  • *****
  • Posts: 2419
Re: Adding track numbers to filename
« Reply #5 on: September 09, 2005, 04:53:13 pm »

Does it?  I think goat has filenames that start with numbers, not track tags.  Wouldn't this require a couple of extra steps to strip the name into track field and then rename?
Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20062
Re: Adding track numbers to filename
« Reply #6 on: September 09, 2005, 04:57:48 pm »

Quote
Does it?
Yes, It does
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

jgreen

  • Citizen of the Universe
  • *****
  • Posts: 2419
Re: Adding track numbers to filename
« Reply #7 on: September 09, 2005, 05:07:43 pm »

Well, I ended up with what goat didn't want:

 01-01-trackname.mp3

I think he's got file names that start with numbers, which may already be filled as track # properties in MC, but which either need to be ignored or stripped away, or he'll get double numbers.
Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20062
Re: Adding track numbers to filename
« Reply #8 on: September 09, 2005, 05:13:00 pm »

if the track numbers are already in the field "Name" it will be displayed twice.
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 9124
Re: Adding track numbers to filename
« Reply #9 on: September 09, 2005, 05:18:11 pm »

woohoo!! Alex, Bob fixed the "warning - while you were typing..." thing :D

Kingsparta, I think you hit the nail right on the head there:)



ps:
Currently grabbing some lyrics from your sever, thank you for the great idea and the service.

goatherder

  • Galactic Citizen
  • ****
  • Posts: 261
Re: Adding track numbers to filename
« Reply #10 on: September 10, 2005, 08:26:26 am »

I have some files which are already named like this, but most which are not. I don't want to go through the entire library manually checking which do, which don't. (~140Gb)


I never had this issue with the iPod, but I wanted a change and moved to the iAudio X5 and of course it can't play stuff in album order unless I name the tracks in a numerical order.


So, no way to do it without potentially ending up with '01-01'?
Logged

jgreen

  • Citizen of the Universe
  • *****
  • Posts: 2419
Re: Adding track numbers to filename
« Reply #11 on: September 10, 2005, 09:18:15 am »

According to the eminent authorities, your problem is solved.  However, what worked for me was this:

1.  Show your entire audio library, and then order it alphabetically by track name, by clicking on the "name" header.  This should put all track names that start with a number at the top of the list.

2.  Select all the tracks with numbers at the start, and then right click, select "fill properties from file name."

3.  Parse the number/name combo into [track #] and [name}.  Where I put the word "and", you'll have to put whatever seperator you have there.  It might me - or _ or-- or somthing.  This is assuming the track numbers in the name field are correct.  If they're not, send the track numbers to a useless field, like "helight", or something.

4.  Check to make sure the song "96 Tears" doesn't have a track number of 96, etc etc.

5  Now you should have good track names, and presumeably good track numbers.  If so, you're ready to rename files from properties, like these guys said.
Logged

KingSparta

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 20062
Re: Adding track numbers to filename
« Reply #12 on: September 10, 2005, 09:28:34 am »

Track Number Should Never Be In "Name"

"Name" Is For "Name" Not Track Numbers.

It Really Irritates me when i get files like this

I Know i am Anal, you don't need to tell me
Logged
Retired Military, Airborne, Air Assault, And Flight Wings.
Model Trains, Internet, Ham Radio, Music
https://MyAAGrapevines.com
https://centercitybbs.com
Fayetteville, NC, USA

jgreen

  • Citizen of the Universe
  • *****
  • Posts: 2419
Re: Adding track numbers to filename
« Reply #13 on: September 10, 2005, 09:47:37 am »

I bought a CD of Beethoven's 7th and 9th Symphonies.  When I ripped it, the movements all had their own leading numbers, the tracks all had seperate numbers at the head, the movement names were all in Italian, and with my eyesight I often confused "7th" and "9th".  I ended up smashing the CD into tiny bits.
Logged

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: Adding track numbers to filename
« Reply #14 on: September 10, 2005, 11:32:24 am »

In other words:

If the [Name] field contains:
10 -  Thou shalt not covet thy neighbor's house
and the [Track #] field contains: 10
Renaming with this string [Track #] – [Name] will correctly result this filename:
10 - 10 -  Thou shalt not covet thy neighbor's house.xxx

In case the [Name] field contains:
Thou shalt not covet thy neighbor's house
and the [Track #] field contains: 10
Renaming with this string [Track #] – [Name] will correctly result this filename:
10 -  Thou shalt not covet thy neighbor's house.xxx

It doesn't matter what the original filename is, but if it is the same as the new filename, naturally it doesn’t change.

It is also possible to use this naming template: [Track #] – [Filename (name)]
In that case the resulting filename would be this:
10 - 10 -  Thou shalt not covet thy neighbor's house.xxx.xxx
if the original filename is:
10 -  Thou shalt not covet thy neighbor's house.xxx


Is this clear now, or should we ask the higher forces to help?   :)
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: Adding track numbers to filename
« Reply #15 on: September 10, 2005, 11:48:05 am »

woohoo!! Alex, Bob fixed the "warning - while you were typing..." thing :D

I noticed that a couple of days ago, but forgot to thank Bob.


Here is screenshot for those who don't have an idea of what we are talking about:




Thanks, Bob!
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755
Pages: [1]   Go Up