OK, here we have an album in my test library in the standard location for it...
Now I'm going to simulate the disaster by renaming the folder containing the files as Unknown Artist\Unknown Album. Note how each track now shows the ! for missing tracks.
Next I select the 12 tracks and run the FindTracks script.
I've clicked No on the first prompt so that I can get track by track confirmation. Next I check that the correct path has been assumed for the media folder to be searched. Note this must be a parent folder of where the files actually are. The script may not guess this initial value correctly if content is split over multiple paths/drives instead of the standard iTunes layout.
The script will search the following potential locations for each track:
- <Media Folder>
- <Media Folder>\<Album Artist>
- <Media Folder>\<Album Artist>\<Album>
- <Media Folder>\<Artist>
- <Media Folder>\<Artist>\<Album>
- <Media Folder>\<Album>
- <Media Folder>\Compilations\<Album>
- <Media Folder>\Music
- <Media Folder>\Music\<Album Artist>
- <Media Folder>\Music\<Album Artist>\<Album>
- <Media Folder>\Music\<Artist>
- <Media Folder>\Music\<Artist>\<Album>
- <Media Folder>\Music\<Album>
- <Media Folder>\Music\Compilations\<Album>
- <Media Folder>\Music\Unknown Artist\Unknown Album
- <Media Folder>\Unknown Artist\Unknown Album
With optimizations when <Album>=<Album Artist>=<Artist>. For all searches outside of the Unknown Artist\Unknown Album folder there is a fuzzy matching mechanism which can cope with, for example, longer/truncated file & folder names or different filename character substitutions. Other types of media will be searched for in their usual locations relative to the media folder.
(Note to self: Add in ability to cope with missing track numbers)
Having confirmed the media location the script comes back with the first proposed correction. Yes will update the location of the track, No will skip that track, and Cancel aborts the script.
After all the tracks have been processed, or you press Cancel, there is a summary of the activity. Obviously confirming each track one at a time would be boring so once you've proved the script is effective it is time to run it on larger groups of files in automatic mode which will display a progress bar so you can see that it is still working. If you close the progress bar the script will safely complete its current operation and then offer to abort or resume.
tt2