New to exporting, - trying to print cd info

I would like to point you at the following thread:
Count total number of albums
Although this is for counting albums and relies on the similarity of filenames and ALBUM you may output the albumname instead of the number....