# Listing all Artists from Album into One Tag Field

**URL:** https://community.mp3tag.de/t/listing-all-artists-from-album-into-one-tag-field/14438
**Category:** Support
**Created:** [February 8, 2013, 3:53am UTC](https://community.mp3tag.de/t/listing-all-artists-from-album-into-one-tag-field/14438 "2013-02-08T03:53:47Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [February 8, 2013, 9:09am UTC](https://community.mp3tag.de/t/listing-all-artists-from-album-into-one-tag-field/14438/10 "2013-02-08T09:09:51Z")

</div>

Here comes another modification of the export script from before.  
The artist names are separated by the delimiter sequence "; " (semicolon+space).  
The list of artist names contains unique artist names and is sorted by artist name.

**01: $filename($getEnv('USERPROFILE')'\Desktop\Mp3tag.Report.CollectArtistsPerAlbum.txt',UTF-8)** 

02: $puts(Info,'This Mp3tag export script creates a report text file of format CSV (  
comma separated values).')  
03: $puts(Info,'The CSV columns are: "Album","ArtistCollection","Filepath".')  
04: $puts(Info,'The CSV output list is sorted by "Album", then by "Filepath".')  
05: $puts(Info,'The CSV column "ArtistCollection" contains a list of artist names, which have been collected from  
the files of the related Album.')  
06: $puts(Info,'The artist names are separated by the delimiter sequence "; " (semicolon+space).')  
07: $puts(Info,'Duplicate artist names will be removed from the list of artist names.')  
08: $puts(Info,'The list of artist names will be sorted by artist name.')$puts(Info,)  
09: $loop(%ALBUM%)$puts(ListOfArtists,)$loop(%ARTIST%)$loop(%ALBUM%)$puts(ListOfArtists,$get(ListOfArtists)%ARTIST%'; ')$loopend()$loopend()  
10: $loop(%ALBUM%)$puts(ListOfArtists,$trim($regexp($get(ListOfArtists),'(?:(?\<=;)|(?\<=\A)|(?\<=^))\s?([^;]_);(?=._?(?\<=;)\s?\1(?=;|\Z|$))(?#remove dups from semicolon- or semicolon+space- delimited list)',),'; '))$loopend()  
11: $loop(%ALBUM%)$loop(%\_path%)'"'%ALBUM%'","'$get(ListOfArtists)'","'%\_path%'"'  
12: $loopend()$loopend()$loopend()

[20130208.Export.CollectArtistsPerAlbum.3.mte](https://community.mp3tag.de/uploads/default/original/2X/e/e30f9a8d37738cf42e5fff8d77069649c0f68610.mte) (1.27 KB)

DD.20130208.1108.CET

[20130208.Export.CollectArtistsPerAlbum.3.mte](https://community.mp3tag.de/uploads/default/original/2X/e/e30f9a8d37738cf42e5fff8d77069649c0f68610.mte) (1.27 KB)

---

_[View the full topic](https://community.mp3tag.de/t/listing-all-artists-from-album-into-one-tag-field/14438)._
