I have a TON of m4a files where for each track, the TOTALTRACKS tag is equal to the TRACK tag. That is, if an album has 10 songs, the TRACK tags are 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 and the corresponding TOTALTRACKS tags are: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
Is there a way where I could create an action that would update the TOTALTRACKS tags from: (1, 2, 3, 4, 5, 6, 7, 8, 9, 10) to (10, 10, 10, 10, 10, 10, 10, 10, 10, 10)
I can do this manually: select the tracks in an album, (make sure TOTALTRACKS is viewable on the left hand side) and change the value.
But, is there any way I could do this for many albums all at once? If you manually select all of the tracks in an album and then click on the TOTALTRACKS field on the left hand side, the drop down has only the values for that selection (as expected) - could there be a way to find the max TOTALTRACKS value based on an ALBUM name
I think in SQL you could do it like this:
UPDATE Tracks t
SET TOTALTRACKS = (
SELECT MAX(t2.TRACK)
FROM Tracks t2
WHERE t2.ALBUM = t.ALBUM
)
No, I am not claiming that mp3tag can perform SQL operations, I just wanted to flesh this out and see if it would even be possible in SQL.