itunes renamed filename as tracks?

Apple itunes cannot use filename to import songs, it uses tracks instead?

The field <file name>, for all my mp3 is apparently NOT used by iTunes, for sorting. As a conclusion my library is totally messed up. I need some help...

Here the details:

I have organized my audiobooks for years, in this way:
file-name: D01 T01.mp3 then D01 T02 then ....then Dn Tm.
No id3 tag.
D01 T01.mp3 means the first track on Disc 01

D05 T14 means the 14th track on Disc 05

Usually audio books contain from 1 to 5 or 6 CDs

Across the years, i ripped all my mp3 with the same structure.

I put album info only on the folder name. For example, my last audio-books set was from Brian Tracy.
For the folder name I chose "Brian Tracy - Psychology of Selling"

The content includes
file-name: D01 T01.mp3 up to D05 T10.mp3

The software I used (Media Monkey) also filled automatically these fields:
title: track 01 up to track 10 for disco 01, then again track 01 to track 10 for disc 02, etc.

I have started to use iTunes since November. But every time I try to import I see that:
- file names are TOTALLY ignored
- I end up having 4 (FOUR) mp3 files called track 01, then another 4 (FOUR) MP3 files called track 02...and so on until track 10...a completely mess!

Since <file name> field (D01 T01.mp3) is apparently NOT used by iTunes, the conclusion is that my library is totally messed up.

Additionally iTunes imports the folder WITHOUT Looking at folder name, so all folders, in iTunes, show as "unknown artist , unknown album". This second issue is solved by me by manually editing the folder name and artist name (using "getinfo" function)

Question:
can somebody explain to me how can I force iTunes to import and sort my file using the FILENAME field (D01 T01.mp3) ? Instead of title field (track 01) ?

Any help is heartily appreciated!
SA

Sony Laptop Z57, Windows 7, x64 bit

Posted on Dec 13, 2010 4:46 PM

Reply
62 replies

Dec 17, 2010 2:54 AM in response to turingtest2

Dear tt2

I am very satisfied! Everything I wanted to accomplish, thanks to you and your scripts I have achieved.

Thanks again to your job. It is really worth.

I am now playing with your other scropts:
AddDisc-TrackNumbers
and
AddTrackNumbers

But I see no effects at all, on the tracks I selected and applied them, even if I get NO error messages.

Have a nice day
SA

Dec 17, 2010 4:43 AM in response to allesim

Those two scripts are to reverse the effects of another script, StripTrackNumbers, that can remove leading disc & track numbers from the filenames. They only work at all if you disable the option to *Keep the iTunes Media folder organised* or the tracks are stored outside the iTunes Media folder. Back in the midsts of time iTunes allowed you to choose whether or not it created leading track and/or disc numbers when it organised files. Those options have long since disappeared from the interface but some people prefer to have bare track titles. While I wouldn't personally advise anyone to delete that data for reasons that should be obvious in this thread I nevertheless wrote the scripts to answer a request elsewhere in these forums.

tt2

Mar 11, 2011 5:13 AM in response to turingtest2

Dear John

I have bought a new laptop, installed iTunes, downloaded your script.
But now, instead of getting the artist and album name, I get something wrong:

from iTunes info:

Name: Arch Lustberg - How to sell Yourself D01 T0i (i=1 to N)
Artist: Audio PD 2008-2010 - MP3 - with artist - album TAGs
Album Artist: Audio PD 2008-2010 - MP3 - with artist - album TAGs
Album: Arch Lustberg - How to sell Yourself


The correct tags (which I used to get with my OLD laptop) were:
Name: The Power of Positive Thinking (4CDs) D01 T0i i (i=1 to M)
Artist: Norman Vincent Peale
Album Artist: Norman Vincent Peale
Album: The Power of Positive Thinking (4CDs)

I understand that your created a customized version on your script. I have dowloaded it (the fine name is: TagFromFilenameCustom.vbs)

I have also tried the original script (TagFromFilename.vbs)

So probably I am missing some special instructions...Please can you give a look on it?

Thanks a lot!
SA


OK, it's done. Download TagFromFilenameCustom.vbs to your computer.

Make sure that you have disabled the advanced preference to Copy to iTunes Media folder when adding to library.

Make a backup copy of your original audiobooks folder.

Add the folder of audiobooks into iTunes.

Select one or two of the newly added tracks and run the script. Select No on the first prompt so you can see what it will do with each file. If you are happy, run the script again, this time selecting Yes so it can make the changes on those selected files. If that works properly select a whole book and run the script on it. Repeat until done.

tt2

Mar 11, 2011 12:08 PM in response to allesim

Hi, it's turingtest2, tt2 or Steve but your email suggests this one was meant for my attention.

The original script expects to see files named in the following way:

*<Parent path>\<Artist>\<Album>\## <Name>.<ext>*

and is used to populate the relevant fields if the tags have no tags. Typically iTunes will have just picked up the filename as *## <Name>* which it puts in the Name field, usually complete with leading track number.

If you can show me exactly what the paths\filenames are for the files you are trying to correct I can tweak my script accordingly.

From this line in your post:
Name: Arch Lustberg - How to sell Yourself D01 T0i (i=1 to N)

it would seem that the file name is in the format:

*<Author> - <Book> D<Disc #> T<Track #>*

If you had correctly migrated your library from your old laptop to the new one, you shouldn't be having any problems with the tags/metadata, or is this a new download? How many tracks are there? Am I right in thinking that PD implies a Public Domain source? If so it might all be clearer if can take a look to see the files myself.

I can tweak my script to read the track numbers from the last two digits but if there are less than ten tracks to worry about it is more effort than manual renaming. Again when the other details such as Album, Album Artist and Album are clearly there to be extracted from the folder names then it is easy enough to do, but bulk changing of these common values for one album is easier to do through Get Info.

tt2

Mar 12, 2011 7:46 AM in response to allesim

Hi Simone,

For anyone else running across this thread the main feature of the tracks in question is that they are set out like this:

Filename - Name
D01 T01 - Track 1
D01 T02 - Track 2
D01 T03 - Track 3
D01 T04 - Track 4
...
D01 T12 - Track 12
D02 T01 - Track 1
D02 T02 - Track 2
etc.

Rather than my TagFromFilename script, the main tool I would use for this is MediaMonkey. It has a number of features that make it easy to perform certain systematic changes. If you install MediaMonkey and browse to the folder holding these tracks you should be able to see them listed in their file path order which is also the correct play order.

Use *Tools > Scripts > Auto Increment Track #s* to give unique ascending track numbers to all the tracks.
(This is not so easy to do from my scripts as the script may not get the tracks in the correct order).

Now use *Tools > Auto-Organize Files* and enter the pattern *How To Sell Yourself, Part <Track#>* then click OK.

Then use *Tools > Auto-Tag From Filename* with the pattern <Title> and click OK.

Now use *Tools > Auto-Organize Files* and use the pattern *<Track#:2> <Title>* or *<Track#:3> <Title>* if there are more than 99 tracks.

Your files should now be in the following layout:

Filename - Name
01 How To Sell Yourself, Part 1 - How To Sell Yourself, Part 1
02 How To Sell Yourself, Part 2 - How To Sell Yourself, Part 2
03 How To Sell Yourself, Part 3 - How To Sell Yourself, Part 3
04 How To Sell Yourself, Part 4 - How To Sell Yourself, Part 4
etc.

You can then select all tracks and use *View > Properties* to set common properties such as Album & Artist.

Since the above has renamed the tracks you should now remove the existing entries from iTunes, correct the parent folder names, e.g. as <Author><Book> and reimport.

Finally, select the tracks in iTunes, change their *Media Kind* to Audiobook (it will have forgotten), then select them again inside the Audiobooks source and run my script AudiobookSortName to make sure the tracks will be ordered properly on any device. See Audiobooks on iPods for an explanation of what the script does and why.

As ever, make a backup copy of the source files before working with MediaMonkey or my scripts in case you need to undo an unintended change.

tt2

Mar 12, 2011 12:44 PM in response to allesim

Hi Steve.

Thanks for the insight about Media Monkey.

In fact, I now realize that the only task I need, to satisfy my request, is MediaMoneky > Viev > Properties, in order to set Album & Artist.

In fact I can accept the original names, D0x T0y..

The only remaining problem is that MediaMonkey does NOT allow me to select ALL the tracks!
Even if I select 10 or all tracks, only the last track is edited!

This means that I need to input the album and artist for each line...too time consuming.

Perhaps I am doing something wrong?

Thanks and waiting
Simone

I need to manually

Mar 12, 2011 12:55 PM in response to allesim

I have tried a bit, selecting all tracks and renaming "album" and "artist". It seems there is a little bug in MM. If I select all sometimes MM will change all records's fields, according to my request, sometimes it won't.

Anyway I have figure out how to rename the tags and importing in iTunes was flawless...Thanks Steve! The problem is really solved now!

I have some non-related topics:

1. is there a necessity and why, to use this option in iTunes:
Copy Files to iTunes Media folder when adding to

When such an option could be useful? To create playlists?

I prefer to put all my mp3s as, for example c:\Audiobooks\Brian Tracy - ABC.

Or as c:\Audiobooks\Arch Lusteberg - How to sell.

Why shall I need to import them in iTunes, thus doubling the hard disk space?

Thanks a lot!
SA

Mar 12, 2011 1:25 PM in response to allesim

allesim wrote:
I have tried a bit, selecting all tracks and renaming "album" and "artist". It seems there is a little bug in MM. If I select all sometimes MM will change all records's fields, according to my request, sometimes it won't.

Anyway I have figure out how to rename the tags and importing in iTunes was flawless...Thanks Steve! The problem is really solved now!

I have some non-related topics:

1. is there a necessity and why, to use this option in iTunes:
Copy Files to iTunes Media folder when adding to

When such an option could be useful? To create playlists?

Some people prefer to leave their original files in place and create copies for the iTunes Library. That way any edits in iTunes don't affect the originals. Personally I think in encourages unnecessary duplication so turn the feature off.
I prefer to put all my mp3s as, for example c:\Audiobooks\Brian Tracy - ABC.

Or as c:\Audiobooks\Arch Lusteberg - How to sell.

Why shall I need to import them in iTunes, thus doubling the hard disk space?

Thanks a lot!
SA

Yep, feel free to lay out your files any way that makes sense to you. I put all mine inside the media folder, but turn off *Keep iTunes Media folder organized* as I have my own preferences, e.g. separate folders for Comedy & Classical, longer file & folder names etc. The advantage of keeping the media inside the iTunes Media folder is that the library is all in one place for backups and such backups are portable. I.e. a library backed up from one drive is fully functional if accessed via a different path/drive.

You only need to use the iTunes audiobooks feature if you find it useful. It keeps my audiobooks away from the rest of my audio which I personally like.

tt2

Mar 12, 2011 11:04 PM in response to turingtest2

Dear Steve

This topis is solved.
Now I just wish to make some "cosmetic" changes.

For example: is it possible to have this naming:

how to sell, part 01
how to sell, part 02
..
how to sell, part 11

instead of
how to sell, part 1
how to sell, part 2
..
how to sell, part 11

I am using MM as you suggested, but cannot find the right setting.

2.
In iTunes I defined these tracks as audiofiles, then I imported all of them to my iPhone 4 4.2.1.
Now, no matter which naming I have used for the tracks, they will ALWAYS show as

Part 1 of 59
Part 2 of 59
...
Part 59 of 59

Is this normal?

3.
offtopic question: backup
I work on windows 7 laptop.
As for your knoweledge, which is the best and most comprehensive way to backup iTunes, all its settings, folders, media, etc in such a way that in case of hard disk replacement or PC replacement, I can then restore with few headaches all of those settings? I am not on Apple MAC, so time capsule is NOT an option..

3b
And the bestbackup solution to FULLY backup my iPhone 4, includind settings and data? and how to restore them, if I purchase a new PC and install iTunes from scratch?

4.
Very offtopic question:
are you familiar with syncing contacts from Outlook 2010 x32 to iPhone 4? I am struggling to find a proper application

Mar 13, 2011 12:58 AM in response to allesim

allesim wrote:
Dear Steve

This topis is solved.
Now I just wish to make some "cosmetic" changes.

For example: is it possible to have this naming:

how to sell, part 01
how to sell, part 02
..
how to sell, part 11

instead of
how to sell, part 1
how to sell, part 2
..
how to sell, part 11

I am using MM as you suggested, but cannot find the right setting.

For 9 tracks you may find it easier to do this by hand, but going back to my earlier instructions after assigning the track numbers instead of:

Now use *Tools > Auto-Organize Files* and enter the pattern *How To Sell Yourself, Part <Track#>* then click OK.

Do this:

Now use *Tools > Auto-Organize Files* and enter the pattern *How To Sell Yourself, Part <Track#:2>* then click OK.

The ":2" forces the two digit numbering.
2.
In iTunes I defined these tracks as audiofiles, then I imported all of them to my iPhone 4 4.2.1.
Now, no matter which naming I have used for the tracks, they will ALWAYS show as

Part 1 of 59
Part 2 of 59
...
Part 59 of 59

Is this normal?

Yes, one of most irritating features of the iTunes/iDevice ecology is that each device seems to follow different rules for ordering, grouping and displaying content. See more in my article on Grouping tracks into albums.
3.
offtopic question: backup
I work on windows 7 laptop.
As for your knoweledge, which is the best and most comprehensive way to backup iTunes, all its settings, folders, media, etc in such a way that in case of hard disk replacement or PC replacement, I can then restore with few headaches all of those settings? I am not on Apple MAC, so time capsule is NOT an option..

*Fast backup for iTunes library (Windows Only)*
Grab SyncToy 2.1, a free tool from MS. This can be used to copy your entire iTunes library (& other important data folders) onto another hard drive or network share. You can then use SyncToy periodically to synchronise or echo your library to the backup. A preview will show which files need to be updated giving you a chance to spot unexpected changes and during the run only the new or updated files will be copied saving lots of time. And if your media is all organised below the main iTunes folder then you should also be able to open the backup library on any system running the same version of iTunes.
3b
And the bestbackup solution to FULLY backup my iPhone 4, includind settings and data? and how to restore them, if I purchase a new PC and install iTunes from scratch?

When the time comes to migrate (or reformat), do a final sync, close iTunes and open the backup copy on the external/network to make sure it functions properly. (Hold down shift when starting iTunes to choose a different library). Deauthorize the PC if you are upgrading on the same hardware or won't be using it again. Once you connect your external/network drive to the new system you should copy the entire iTunes folder into the new profile and then install iTunes. Install SyncToy again so that you can maintain a backup in future.

A library cloned in this fashion should (as far as iTunes is concerned) be identical to the library previously used to manage your devices, so none of the content should be disturbed.
4.
Very offtopic question:
are you familiar with syncing contacts from Outlook 2010 x32 to iPhone 4? I am struggling to find a proper application

Nope, I sync with Exchange and prefer Office 2003 to the later iterations. I dislike the ribbon. However I would have thought it was just a matter of using the options on the Info. tab when the device is connected.

tt2

Mar 13, 2011 1:05 AM in response to allesim

allesim wrote:
Dear Steve

This topis is solved.
Now I just wish to make some "cosmetic" changes.

For example: is it possible to have this naming:

how to sell, part 01
how to sell, part 02
..
how to sell, part 11

instead of
how to sell, part 1
how to sell, part 2
..
how to sell, part 11

I am using MM as you suggested, but cannot find the right setting.

For 9 tracks you may find it easier to do this by hand, but going back to my earlier instructions after assigning the track numbers instead of:
Now use *Tools > Auto-Organize Files* and enter the pattern *How To Sell Yourself, Part <Track#>* then click OK.

Do this:
Now use *Tools > Auto-Organize Files* and enter the pattern *How To Sell Yourself, Part <Track#:2>* then click OK.

The ":2" forces the two digit numbering.
2.
In iTunes I defined these tracks as audiofiles, then I imported all of them to my iPhone 4 4.2.1.
Now, no matter which naming I have used for the tracks, they will ALWAYS show as

Part 1 of 59
Part 2 of 59
...
Part 59 of 59

Is this normal?

Yes, one of most irritating features of the iTunes/iDevice ecology is that each device seems to follow different rules for ordering, grouping and displaying content. The behaviour with respect to guest artist/album artists is particularly inconsistent. See more in my article on Grouping tracks into albums.
3.
offtopic question: backup
I work on windows 7 laptop.
As for your knoweledge, which is the best and most comprehensive way to backup iTunes, all its settings, folders, media, etc in such a way that in case of hard disk replacement or PC replacement, I can then restore with few headaches all of those settings? I am not on Apple MAC, so time capsule is NOT an option..

*Fast backup for iTunes library (Windows Only)*
Grab SyncToy 2.1, a free tool from MS. This can be used to copy your entire iTunes library (& other important data folders) onto another hard drive or network share. You can then use SyncToy periodically to synchronise or echo your library to the backup. A preview will show which files need to be updated giving you a chance to spot unexpected changes and during the run only the new or updated files will be copied saving lots of time. And if your media is all organised below the main iTunes folder then you should also be able to open the backup library on any system running the same version of iTunes.
3b
And the bestbackup solution to FULLY backup my iPhone 4, includind settings and data? and how to restore them, if I purchase a new PC and install iTunes from scratch?

When the time comes to migrate (or reformat), do a final sync, close iTunes and open the backup copy on the external/network to make sure it functions properly. (Hold down shift when starting iTunes to choose a different library). Deauthorize the PC if you are upgrading on the same hardware or won't be using it again. Once you connect your external/network drive to the new system you should copy the entire iTunes folder into the new profile and then install iTunes. Install SyncToy again so that you can maintain a backup in future.

A library cloned in this fashion should (as far as iTunes is concerned) be identical to the library previously used to manage your devices, so none of the content should be disturbed.

Note: This goes back to my point recommending that you organising your iTunes content within the iTunes Media folder. If you keep it elsewhere then the content needs to be restored to exactly the same path on the new machine or the library won't be able to access it.
4.
Very offtopic question:
are you familiar with syncing contacts from Outlook 2010 x32 to iPhone 4? I am struggling to find a proper application

Nope, I sync with Exchange and prefer Office 2003 to the later iterations. I dislike the ribbon. However I would have thought it was just a matter of using the options on the Info. tab when the device is connected.

tt2

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

itunes renamed filename as tracks?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.