# Copy COMMENT from #01 to other tracks

**URL:** https://community.mp3tag.de/t/copy-comment-from-01-to-other-tracks/11104
**Category:** Support
**Created:** [November 10, 2010, 5:20pm UTC](https://community.mp3tag.de/t/copy-comment-from-01-to-other-tracks/11104 "2010-11-10T17:20:14Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![echoplex](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/919ad9/32.png) [@echoplex](https://community.mp3tag.de/u/echoplex)
#### Post date: [November 10, 2010, 5:20pm UTC](https://community.mp3tag.de/t/copy-comment-from-01-to-other-tracks/11104/1 "2010-11-10T17:20:14Z")

</div>

I have a date set in the COMMENT field for all of my FLAC files - this was sourced from the file modified date, and will be used for playlist creation.

The problem I have is that some of the albums don't have consistent dates throughout the tracks. For instance:  
Track 1: 15/08/2009  
Track 2: 14/07/2009  
Track 3: 15/08/2009  
Track 4: 15/08/2009

Is there a way I can copy whatever comment is set in track 1 to the other tracks on the album? Also, I don't want to have to go through and check my 900+ albums individually for this problem, so is there a way to automate this over different albums?

Many thanks for a great program.

---

<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: [November 10, 2010, 5:52pm UTC](https://community.mp3tag.de/t/copy-comment-from-01-to-other-tracks/11104/2 "2010-11-10T17:52:18Z")

</div>

> [@echoplex](#):
>
> ...The problem I have is that some of the albums don't have consistent dates throughout the tracks. For instance:  
> Track 1: 15/08/2009  
> Track 2: 14/07/2009  
> Track 3: 15/08/2009  
> Track 4: 15/08/2009  
> Is there a way I can copy whatever comment is set in track 1 to the other tracks on the album? ...

Hmm, when you are in the Mp3tag list view window, then you can manually copy and paste from cell to cell. This works as fast as you can. The advantage of this method is that you easily can see where you have to repair a date.

Another possible way would be writing an export script, which creates a text file with each line containing comment and path data for later re-import the comments. By clever usage of the $loop() function it should be possible to fetch an albums's first comment's value and put it out to the following tracks.

DD.20101110.1952.CET

---

<div class="post-metadata">

### Author: ![echoplex](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/e/919ad9/32.png) [@echoplex](https://community.mp3tag.de/u/echoplex)
#### Post date: [November 11, 2010, 11:25am UTC](https://community.mp3tag.de/t/copy-comment-from-01-to-other-tracks/11104/3 "2010-11-11T11:25:21Z")

</div>

> [@DetlevD](#):
>
> clever usage of the $loop() function

That's a bit beyond my current capabilities, but it sound like it would be worth me investigating it.

For ease, I just want to run it against my whole library. The files where the dates are already correct will not be adversely affected by doing this, so it saves a lot of time doing the whole lot.

I knew about copying and pasting, but that would take me forever.

---

<div class="post-metadata">

### Author: ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)
#### Post date: [November 11, 2010, 1:37pm UTC](https://community.mp3tag.de/t/copy-comment-from-01-to-other-tracks/11104/4 "2010-11-11T13:37:08Z")

</div>

> [@echoplex](#):
>
> That's a bit beyond my current capabilities, but it sound like it would be worth me investigating it.
> 
> For ease, I just want to run it against my whole library. The files where the dates are already correct will not be adversely affected by doing this, so it saves a lot of time doing the whole lot.
> 
> I knew about copying and pasting, but that would take me forever.

If you have stored every album in a seperate folder, you can also make a workaround by formating the folder name.

~~Make a Action group containing the following~~ :

1. 

Action: Formant Value  
Field: \_DIRECTORY  
Format String: %\_directory%XXXXX%\_file\_mod\_date%  
(this will add the modification date of the **first file** to the folder name)

1. 

Action: Guess Values  
Source Format: $replace(%\_directory%,.,/)  
Guessing Pattern: %dummy%XXXXX%comment%  
(this will write the comment. the $replace(...) is for replacing . with / in the date)

1. 

Action: Replace with Regular Expression  
Field: \_DIRECTORY  
Regular Expression: XXXXX.\*  
Replace Matches with:  
(this will write the folder name back in the way it was written before)

**EDIT:**  
If you want the comment and not the acutal modifaction date for all files (as you have written), you must you the format string  
%\_directory%XXXXX$validate(%comment%,.)  
in the first action.

I found out with testing that the whole process only works if you run the three actions seperatly one after the other. When you combine them in a action group, the comments stay as they are.

---

<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: [November 11, 2010, 6:53pm UTC](https://community.mp3tag.de/t/copy-comment-from-01-to-other-tracks/11104/5 "2010-11-11T18:53:47Z")

</div>

> [@echoplex](#):
>
> ...  
> I have a date set in the COMMENT field for all of my FLAC files - this was sourced from the file modified date, and will be used for playlist creation.  
> The problem I have is that some of the albums don't have consistent dates throughout the tracks. For instance:  
> Track 1: 15/08/2009  
> Track 2: 14/07/2009  
> Track 3: 15/08/2009  
> Track 4: 15/08/2009  
> Is there a way I can copy whatever comment is set in track 1 to the other tracks on the album? Also, I don't want to have to go through and check my 900+ albums individually for this problem, so is there a way to automate this over different albums? Many thanks for a great program.

There is a way to go:

1. Make sure, that all files within an album contain a correct track number starting with a value of 1.

2. Make sure, that the first track of each album contains a tag-field MY\_FIELD (can be of any name) with the content value, which should be copied into all files from this album.

3. Run the following export script against all selected albums resp. their files.  
Adapt the output filename to your needs.

4. Import the values from the export script's output by using converter "Textfile - Tag" into the target tag field of all files from the previous file selection.  
Adapt the input filename to your needs.

Converter "Textfile - Tag" [Alt+4]  
Filename: O:\TEST\FirstToAll.PerAlbum.txt  
Format string: "%MY\_FIELD%"|"%TRACK%"|"%\_PATH%"

1. Ready.

DD.20101111.2055.CET

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:22pm UTC](https://community.mp3tag.de/t/copy-comment-from-01-to-other-tracks/11104/6 "2026-02-09T12:22:41Z")

</div>


