Sometimes there is the need to enumerate a large amount of files, which relate to different data media, e.g. album with 27 files stored on three CDs. It would be helpful to have a tag-field, automatically created into the track file, which holds the total amount of discs per album.
Today Mp3tag has no readymade built-in support for this purpose, but we are not lost at all.
We can use the Mp3tag services "export" and "actions" to proceed the enumeration automatically, to get the total values of tracks and discs, on a per album basis.
Start Mp3tag and load the files to work with.
The user must have write access to the folders and files. Files resp. their attributes must be set as writable.
While the enumeration is running, the files get new tag-fields, which afterwards will be removed immediately by the action group. All files must have already set the tag-field DISCNUMBER to the corresponding physical disc number!
Select all files from one album or from more albums.
Run the export script “Export TXT Totaldiscs Totaltracks”.
This will create the text file on the desktop: “Mp3tag.Export.txt”.
Do not change the content of this file in any way!
At end of the entire process, delete this file.
This text file provides the input data for the following Mp3tag action script.
Run the action group “Set Totaldiscs (run export script before!)”.
This group of actions will create one tag-field TOTALDISCS.
Alternatively run the action group “Set Totaldiscs Totaltracks (run export script before!)”.
This group of actions will create two tag-fields TOTALDISCS and TOTALTRACKS.
This overwrites all existing values in these tag-fields.
Be aware of not destroying the content of the tag-field TOTALTRACKS, when you have set
the value by other personal rules, for example:
You have an album with 10 tracks overall, from which you have only 5 tracks on your disk, but you did set manually the tag-field TOTALTRACKS to the value 10 to be in order with the complete album. By executing this group of actions the tag-field TOTALTRACKS will be set to the number of the counted physical existing files, that gives the value 5.
View the result within dialog “Extended tags…” … or … display %TOTALDISCS% within a dedicated column in the list view.
Remove the file “Mp3tag.Export.txt” from desktop.
I did not verify this first attempt in full scope, so please feel free to report your experiences!
Download the attached zip file, which contains ...
Manual, MTE export script, MTA action groups, Test folder tree.
v1.00, Mp3tag.HowToSetTotalDiscs.zip ( 142.4K ) Number of downloads: 5
v1.01, Mp3tag.HowToSetTotalDiscs.zip ( 107.61K ) Number of downloads: 2
v1.02, Mp3tag.HowToSetTotalDiscs.102.zip (110 KB)
Mp3tag.HowToSetTotalDiscs.102.zip (110 KB)