... Is there a way to use the already correct folder names and structure?
Turn off the iTunes options under Edit > Preferences > Advanced to Keep iTunes Media folder organized and Copy to iTunes Media folder when adding to library, then import your wav fies. Once they have been imported locate them, e.g by way of the Recently Added playlist, select the tracks and run my script TagFromFilename. iTunes enforces a file & folder name limit of 40 characters so you may still need to make some corrections.
For the long run I'd suggest you convert these tracks to Apple Lossless. All the quality, half the size and tags that can carry artwork and are preserved if you reimport to a new library.
Hi tt2, thank you for your swift and detailed reply. I'd like to say at the outset that iTunes is quite new to me and my knowledge of it is very limited - I chose it simply as a free music management system to enable me to put my CDs onto my computer.
I have both the Advanced options ticked, the second one so that the actual music files are stored within the iTunes library rather than just a pointer to them. The folders containing my WAV files are standard Windows folders (i.e. not in any iTunes database or library). If I choose to import say, 3 Artist folders each with 2 Album folders (containing the WAV files), using the 'Import folders to Library' option, iTunes imports the entire 60 tracks and displays them under one, Unknown Album, Unknown Artist heading. Track titles are maintained as are track numbers (giving rise to duplicate, triplicate etc. track numbers).
Looking in the iTunes Media folder I can see the 60 tracks in folder Unknown Artist, sub folder Unknown Album. So, album and artist names have ben lost because the folders haven't been imported, just the files from within the folders. From this I'd guess that running a script (not that I have any knowledge of these things) could not re-organize the WAV files into a correctly named folder structure.
The next think I did was to try simply copying the folders of WAV files into the iTunes Music folder. The result 'looked' ok but on running iTunes there was no sign of the new albums. Is there another step that would cause iTunes to 'see' these new folders within its Music folder?
iTunes doesn't automatically import media unless you place it in the Automatically Add to iTunes folder, which you certainly don't want to do at this point, since the results will be the same as those you've seen already. Hopefully you still have the originals in sensible folders somewhere. If you disable the two options (albeit temporarily) then you can import the files again from their current locations. You can then use my script to give iTunes the missing information it can't work out for itself. Once done you can, if you wish, turn both options back on and consolidate your library so that iTunes makes new copies inside the media folder, giving them the correct artist and album folders. If you've already placed new copies inside the iTunes Media folder then use File > Add Folder to Library > <Media Folder>, but only after disabling the Keep... option. You can also discard the Unknown Artist/Unknown Album versions...
Hi tt2, I've now read your reply more carefully and saw you said the advanced options should be OFF. I re-did the Import Folder to Library and then ran your script, TagFromFilename - it worked a treat, thank you.
The (only) snag I can see at the moment is that the music I imported is not actually in the iTunes Music folder but is somehow referenced by iTunes to its source location on a separate hard drive. I have tried importing with Keep iTunes Media folder organized OFF and Copy files to iTunes Media folder ON and then running your script - that resulted in all tracks listed under one Unknown Artist / Unknown Album again but with the desired actual copies of the tracks in the iTunes Music folder. Is there a method to get around my problem? Regards, Steve.
No worries, once iTunes knows the track details you can either consolidate (the whole library or the selected tracks) and it will make new copies of externally referenced media, or turn the Keep media folder organized... back on if you were working with copies that had already been placed in the media folder to have iTunes make any minor tweaks to the layout that it wants.
Hi TT2, took me ages to re-find this exchange, is there an easier way than searching communities for my ID?
Using your method and your script I have moved my CD files into iTunes and all looks good, thank you.
I'm unsure if I should stick with iTunes or try to find a less idiosyncratic application that allows a bit more flexibility in manipulation of my content and somewhat more intuitive (or is this just me?), in its use. Any recommendations? A niggle at the moment is that of adding artwork where iTunes doesn't have the download - there are several blanks in my library, one in particular where iTunes provided the artwork for volume two but none for volume one (of Santana, Ultimate Collection), strange. Does iTunes have artwork for only the music it has available for purchase? I've now noticed on importing some fresh CDs (from shop-bought CDs), that I'm asked if I can help to update the Gracenote database by allowing upload of something (?), from the CD as it starts to import into iTunes - can iTunes users access this database to obtain artwork? Also. I'm unable to provide my own artwork for WAV files (I'm guessing WAVs have no capability of having artwork data attached to them (are such attachments known as Tags?)) BUT, where iTunes has found the album cover for me, it is displayed alongside my WAV albums - can I load a picture into the corresponding data area when no artwork is currently present or, is this not user-accessible. I hope my queries don't sound too dumb to experienced users. One last point, I do not want to have the music within my iTunes library encoded as anything other than WAV, otherwise I'd have to maintain a complete duplicate library to enable burning of WAV entire CDs or compilations for use in stand-alone domestic/auto CD players. Regards and many thanks for help and guidance so-far, Steve.