Example report ...

===========================================================================
List of files with data in tag-field COMMENT
===========================================================================

ALBUM: Autumn Days

FILE: O:\MUSIK\ROCK\G\Gus Black\2005 - Autumn Days.6CH.SX\01_DontGoTellin
COMMENT: MP3 Stereo eXtended

ALBUM: Back in Bass

FILE: O:\MUSIK\POP COLLECTION\T\Techmaster P.E.B. & DJ Magic Mike\1999 -
COMMENT ITUNNORM: 000005FB 000005FB 000005FB 000005FB 000005FB

ALBUM: Best Of

FILE: O:\MUSIK\ROCK\M\Milva\1999 - Best Of\04_KeineStundeTutMirLeid_Milva
COMMENT: CD (19. Januar 1999)
: Anzahl Disks: 1
: Label: Spectrum (Universal)
: ASIN: B000023YRE

ALBUM: Mercedes Benz Mixed Tape 36: White Waves

FILE: O:\MUSIK\VA COMPILATIONS\M\Mercedes-Benz Mixed Tape 36\01_PashleyMu
COMMENT: Discover something new again and again with Mixed Tape
COMMENT ITUNNORM: 000005FA 00000613 00004303 00008085 00008FAC
COMMENT ITUNPGAP: 0
COMMENT ITUNSMPB: 00000000 00000210 0000076F 0000000000796001

ALBUM: Mercedes-Benz Mixed Tape 03

FILE: O:\MUSIK\VA COMPILATIONS\M\Mercedes-Benz Mixed Tape 03\01_HowWillIK
COMMENT: Discover something new again and again with Mixed Tape
: from new international artists available as free
: six to eight weeks. www.mixed-tape.com
COMMENT ITUNNORM: 0000191A 0000191A 0000191A 0000191A 0000191A

ALBUM: 1984 - Hello AAC

FILE: O:\TEST\T1\Folder BBB\AAA (BBB) (feat. CCC).mp3
COMMENT:M: Person1:Role1
: Person2:Role2
: Person3:Role3
:
M: 24/96 Vinyl Rip - aksman 2011 - 1999 Speakers Corner SP-3647

ALBUM: Exposures - In Retrospect And Denial

FILE: O:\TEST\T1\ThreeDots\Folder BBB\Dark Tranquillity - Exposures (In R
COMMENT:M: multi value comment 1
M: multi value comment 2 Line 1
: multi value comment 2 Line 2
: multi value comment 2 Line 3
M: multi value comment 3
COMMENT ITUNNORM: 000003E8 000003E8 000003E8 000003E8 000003E8

______________________________________________________________________

Export script (2 lines) ...

1: $filename($getEnv('USERPROFILE')'\Desktop\Mp3tag.Report.COMMENT.txt',UTF-8)$repeat('=',80)$char(13)$char(10)'List of files with data in tag-field COMMENT'$char(13)$char(10)$repeat('=',80)
2: $loop(%ALBUM%)$char(13)$char(10)$char(13)$char(10)'ALBUM: '%ALBUM%$loop(%_filename%)$if(%COMMENT%%COMMENT ITUNES_CDDB_IDS%%COMMENT ITUNNORM%%COMMENT ITUNPGAP%%COMMENT ITUNSMPB%%COMMENT MUSICMATCH_PREFERENCE%,$char(13)$char(10)$char(13)$char(10)' FILE: '%_path%$if(%COMMENT%,$if($neql($meta(COMMENT,1),%DUMMY%),$char(13)$char(10)' COMMENT:M: '$regexp($regexp($meta_sep(COMMENT,$char(7)),'\R','$0'$repeat(' ',13)': '),'\x07',$char(13)$char(10)$repeat(' ',12)'M: '),$char(13)$char(10)' COMMENT: '$regexp(%COMMENT%,'\R','$0'$repeat(' ',11)': ')),%DUMMY%)$if(%COMMENT ITUNNORM%,$char(13)$char(10)' COMMENT ITUNNORM: '%COMMENT ITUNNORM%,%DUMMY%)$if(%COMMENT ITUNPGAP%,$char(13)$char(10)' COMMENT ITUNPGAP: '%COMMENT ITUNPGAP%,%DUMMY%)$if(%COMMENT ITUNSMPB%,$char(13)$char(10)' COMMENT ITUNSMPB: '%COMMENT ITUNSMPB%,%DUMMY%)$if(%COMMENT ITUNES_CDDB_IDS%,$char(13)$char(10)' COMMENT ITUNES_CDDB_IDS: '%COMMENT ITUNES_CDDB_IDS%,%DUMMY%)$if(%COMMENT MUSICMATCH_PREFERENCE%,$char(13)$char(10)' COMMENT MUSICMATCH_PREFERENCE: '%COMMENT MUSICMATCH_PREFERENCE%,%DUMMY%),%DUMMY%)$loopend()$loopend()

______________________________________________________________________

Have fun!

Click to view attachment

DD.20111128.2323.CET
______________________________________________________________________

Here is the same functionality by another script ...

Click to view attachment
______________________________________________________________________

01: $filename($getEnv('USERPROFILE')'\Desktop\Mp3tag.Report.COMMENT.txt',UTF-8)$loop(1,1)$puts(sp,$char(32))$puts(tab,$char(9))$puts(crlf,$char(13)$char(10))$puts(br,'{br}')$loopend()$replace(
02:
03: $repeat('=',80)$get(br)'List of files with data in tag-field COMMENT'$get(br)$repeat('=',80)
04:
05: $loop(%ALBUM%)$replace(
06: $get(br)$get(br)
07: 'ALBUM: '%ALBUM%
08:
09: $loop(%_filename%)$replace(
10:
11: $if(%COMMENT%%COMMENT ITUNES_CDDB_IDS%%COMMENT ITUNNORM%%COMMENT ITUNPGAP%%COMMENT ITUNSMPB%%COMMENT MUSICMATCH_PREFERENCE%,
12: $get(br)$get(br)
13: $repeat(' ',2)'FILE: '%_path%
14: $if(%COMMENT%,$iflonger($meta(COMMENT,1),0,$get(br)
15: $repeat(' ',4)'COMMENT:M: '
16: $regexp($regexp($meta_sep(COMMENT,$char(7)),'\R',$get(br)
17: $repeat(' ',13)''),'\a',$get(br)
18: $repeat(' ',12)'M: '),$get(br)
19: $repeat(' ',4)'COMMENT: '
20: $regexp(%COMMENT%,'\R',$get(br)
21: $repeat(' ',11)'')),)
22: $if(%COMMENT ITUNNORM%,$get(br)
23: $repeat(' ',4)'COMMENT ITUNNORM: '%COMMENT ITUNNORM%,)
24: $if(%COMMENT ITUNPGAP%,$get(br)
25: $repeat(' ',4)'COMMENT ITUNPGAP: '%COMMENT ITUNPGAP%,)
26: $if(%COMMENT ITUNSMPB%,$get(br)
27: $repeat(' ',4)'COMMENT ITUNSMPB: '%COMMENT ITUNSMPB%,)
28: $if(%COMMENT ITUNES_CDDB_IDS%,$get(br)
29: $repeat(' ',4)'COMMENT ITUNES_CDDB_IDS: '%COMMENT ITUNES_CDDB_IDS%,)
30: $if(%COMMENT MUSICMATCH_PREFERENCE%,$get(br)
31: $repeat(' ',4)'COMMENT MUSICMATCH_PREFERENCE: '%COMMENT MUSICMATCH_PREFERENCE%,),)
32:
33: ,$get(tab),$get(sp),$get(crlf),,$get(br),$get(crlf))$loopend()
34: ,$get(tab),$get(sp),$get(crlf),,$get(br),$get(crlf))$loopend()
35: ,$get(tab),$get(sp),$get(crlf),,$get(br),$get(crlf))

______________________________________________________________________

DD.20140318.1910.CET