# Export the texts to a different file for each song?

**URL:** <https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209>\
**Category:** Support\
**Created:** [December 2, 2019, 1:41am UTC](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209 "2019-12-02T01:41:27Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [December 2, 2019, 2:18pm UTC](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209/21 "2019-12-02T14:18:38Z")

</div>

> [@Lauraq](#):
>
> This is because I often update my songs with better versions and by deleting the old files I also lose the translations ☹

Do you know that you can transfer all tag-content from one file to another in one go by using C&P?

---

<div class="post-metadata">

**Author:** ![Lauraq](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/b782af/32.png) [@Lauraq](https://community.mp3tag.de/u/Lauraq)\
**Post date:** [December 2, 2019, 4:17pm UTC](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209/22 "2019-12-02T16:17:52Z")

</div>

> [@poster](#):
>
> C&P

I dont' know it, what is C&P?  
thanks

---

<div class="post-metadata">

**Author:** ![poster](https://community.mp3tag.de/user_avatar/community.mp3tag.de/poster/32/4881_2.png) [@poster](https://community.mp3tag.de/u/poster)\
**Post date:** [December 2, 2019, 4:49pm UTC](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209/23 "2019-12-02T16:49:18Z")

</div>

> [@Lauraq](#):
>
> I dont' know it, what is C&P?

Copy & Paste.

Load the files that you want to treat in MP3Tag (Old and new one).  
Mark the old file and press `CTRL+c`.  
Mark the new one and press `CTRL+v`.

You can do that not only for 1 file but also for several files in one go if you sort them in MP3Tag in the right order.

---

<div class="post-metadata">

**Author:** ![Lauraq](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/b782af/32.png) [@Lauraq](https://community.mp3tag.de/u/Lauraq)\
**Post date:** [December 2, 2019, 5:06pm UTC](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209/24 "2019-12-02T17:06:38Z")

</div>

thanks good tricks 😉

Do you have know what ohrenkino have write to me? Can you explain me?  
Thanks

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [December 2, 2019, 5:40pm UTC](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209/25 "2019-12-02T17:40:11Z")

</div>

> [@Lauraq](#):
>
> thanks good tricks

Not, that I mentioned that function already in the second post.

> [@ohrenkino](#):
>
> keep the old file until you have copied the whole tag with the function file list context menu\>Copy tag and pasted the tag data to the new file, this time with file list context menu\>Paste tag.

As everything has been said at least twice, I would now ask @Lauraq to describe step by step what is done so that we can intervene where it goes into the wrong direction.

> [@Lauraq](#):
>
> select Import text file, field LYRICIST

the real field for lyrics is UNSYNCEDLYRICS. the lyricist is the person who wrote them.  
That what you describe here is also not what I described.  
It does not help to enter only a single field, you have to name also all the other pieces of data in the file. If you do not want to use them, use the field name %dummy%.

---

<div class="post-metadata">

**Author:** ![Lauraq](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/b782af/32.png) [@Lauraq](https://community.mp3tag.de/u/Lauraq)\
**Post date:** [December 2, 2019, 7:33pm UTC](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209/26 "2019-12-02T19:33:44Z")

</div>

I set UNSYNCEDLYRICS and it doesn't work, copy the complete text to all the mp3s.

As you say it is wrong but I don't know what I should change, maybe you think you talk to a programmer 🙂 if you want to write me which string to insert you do me a favor.

As I wrote to you, I don't care that the script inserts anything else, only the lyrics and that I assign them based on the file name

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [December 2, 2019, 7:46pm UTC](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209/27 "2019-12-02T19:46:52Z")

</div>

Where did you set UNSYNCEDLYRICS?  
Which string should I tell you to insert where?

I need to know what you actually do. Otherwise we will not get a single step further.  
So which way do you want to go? Export or copy and paste?  
How many files should be treated in one go?  
Which tag fields do you want to transfer from old files to new ones?

---

<div class="post-metadata">

**Author:** ![Lauraq](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/b782af/32.png) [@Lauraq](https://community.mp3tag.de/u/Lauraq)\
**Post date:** [December 2, 2019, 7:51pm UTC](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209/28 "2019-12-02T19:51:43Z")

</div>

what I did is:

1 created an export.lyrics.mte file with your script

$ Filename (csv, utf-16) $ loop (% \_% filename)  
\_Filename\_ext%% /% track% /% title% / $ replace (% unsyncedlyrics%, $ char (13) $ char (10), #) $ LoopEnd ()

put it in export folder and used with Mp3Tag under Action (Quick) - Export

Then I tried to do the reverse path, I emptied my Mp3s from the lyrics and I have open Mp3Tag under Action (Quick) - Import from file, but I have not had a good result. So I think the script is not good or something is wrong

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [December 2, 2019, 8:00pm UTC](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209/29 "2019-12-02T20:00:16Z")

</div>

If this is an exact copy of the script then it will not work as there are too many space characters. Also, the %-characters seem to be all over the place which leads to no valid syntax.  
The correct script is here:

> [@ohrenkino](#):
>
> `$filename(csv,utf-16)$loop(%_filename%)`  
> `%_filename_ext%/%track%/%title%/$replace(%unsyncedlyrics%,$char(13)$char(10),#)$loopend()`

The script itself can be called via File\>Export ...  
You can then check the output with a plain text editor.  
If you see that the result is OK  
Can we agree that so far the result is the desired text file?

---

<div class="post-metadata">

**Author:** ![Lauraq](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/b782af/32.png) [@Lauraq](https://community.mp3tag.de/u/Lauraq)\
**Post date:** [December 2, 2019, 8:07pm UTC](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209/30 "2019-12-02T20:07:00Z")

</div>

I have replaced the old script with the new but don't work correctly.  
He copied the entire contents of the csv generated in all the mp3s. All the mp3 lyrics is now the same ☹

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [December 2, 2019, 8:19pm UTC](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209/31 "2019-12-02T20:19:21Z")

</div>

In what respect doesn't the script work correctly? I tested it and it works OK over here.  
(all this could be sped up if you showed us your input, preferably with a screenshot, then the actual output and toldf us what the expected output should be)

---

<div class="post-metadata">

**Author:** ![Lauraq](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/b782af/32.png) [@Lauraq](https://community.mp3tag.de/u/Lauraq)\
**Post date:** [December 2, 2019, 8:24pm UTC](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209/32 "2019-12-02T20:24:04Z")

</div>

I wrote it, the file generated by your script copies the entire contents into all the mp3s. In every mp3 I have the text of all the others 🙂  
And it's the same error I had with the old script, so I asked you for one that worked

I don't think a screenshot is needed, I didn't check any entries, I only did what I wrote you before, I don't understand why it works for you and I don't ☹

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [December 2, 2019, 8:28pm UTC](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209/33 "2019-12-02T20:28:25Z")

</div>

> [@Lauraq](#):
>
> the file generated by your script copies the entire contents into all the mp3s

How does a plain text file copy itself to several audio files?

---

<div class="post-metadata">

**Author:** ![Lauraq](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/b782af/32.png) [@Lauraq](https://community.mp3tag.de/u/Lauraq)\
**Post date:** [December 2, 2019, 8:36pm UTC](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209/34 "2019-12-02T20:36:35Z")

</div>

are you kidding me 🧐

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [December 2, 2019, 8:39pm UTC](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209/35 "2019-12-02T20:39:57Z")

</div>

Why should I?  
But: the export script does not do anything but create a plain text file.  
It does not overwrite any data in any audio files.  
So, what happens after the export?

---

<div class="post-metadata">

**Author:** ![Lauraq](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/b782af/32.png) [@Lauraq](https://community.mp3tag.de/u/Lauraq)\
**Post date:** [December 2, 2019, 8:43pm UTC](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209/36 "2019-12-02T20:43:38Z")

</div>

but did you understand what I want?  
All we're doing is saving the lyrics and then importing them into the new mp3s. And not all of them gathered in one file but each mp3 with its text  
What do you want to happen, I go to see the mp3 tags and find out that in all the mp3s the ENTIRE contents of the csv file generated by your script have been imported. Does that sound smart to you?

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [December 2, 2019, 8:55pm UTC](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209/37 "2019-12-02T20:55:57Z")

</div>

> [@Lauraq](#):
>
> but did you understand what I want?

As far as I understood it: you want to copy tag data from an old file to a new file vie the intermediate step of a text file.

> [@Lauraq](#):
>
> And not all of them gathered in one file but each mp3 with its text

I thought it has already been settled that this is only possible if you treat each audio file separately - this was something that I understood as a no-go

> [@Lauraq](#):
>
> I can't do the very long work you tell me

So where did I go wrong?

---

<div class="post-metadata">

**Author:** ![Lauraq](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/b782af/32.png) [@Lauraq](https://community.mp3tag.de/u/Lauraq)\
**Post date:** [December 2, 2019, 9:00pm UTC](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209/38 "2019-12-02T21:00:31Z")

</div>

But sorrryyyyyyyyyy 🙂  
Do you think I'm doing all this mess to do a job with a script, one mp3 at a time, when I can easily do it by hand ?????  
It is trivial that I wanted a script to automate everything.  
Sorry but I don't understand the usefulness of your script

---

<div class="post-metadata">

**Author:** ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)\
**Post date:** [December 2, 2019, 9:08pm UTC](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209/39 "2019-12-02T21:08:27Z")

</div>

The export script should generate an output with a single file that contains the records of all selected files - some kind of summary file.  
As far as I understood you, you wanted to have exactly 1 text file for each audio file. This is not possible to generate with one export run.

The function Convert\>Text-File - Tag can be used to import data from such a summary text file to a single audio file or to several audio files if you include the audio filename in the record.

---

<div class="post-metadata">

**Author:** ![Lauraq](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/b782af/32.png) [@Lauraq](https://community.mp3tag.de/u/Lauraq)\
**Post date:** [December 3, 2019, 7:34am UTC](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209/40 "2019-12-03T07:34:19Z")

</div>

I partially solved the problem by using the lyr\_htm script and then the Mp3tagLyricsSplitter program and I get exactly what I was asking for, a single txt for each song and with the name of the song.  
Now I have to find a script that allows me to import individual txt files into individual songs, can you help me?

[Previous page](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209.md?page=1)

[Next page](https://community.mp3tag.de/t/export-the-texts-to-a-different-file-for-each-song/47209.md?page=3)
