# Get info from textfile as Action

**URL:** https://community.mp3tag.de/t/get-info-from-textfile-as-action/69366
**Category:** Support
**Created:** [August 9, 2025, 7:19pm UTC](https://community.mp3tag.de/t/get-info-from-textfile-as-action/69366 "2025-08-09T19:19:49Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![popmarter1](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/e99b99/32.png) [@popmarter1](https://community.mp3tag.de/u/popmarter1)
#### Post date: [August 9, 2025, 7:19pm UTC](https://community.mp3tag.de/t/get-info-from-textfile-as-action/69366/1 "2025-08-09T19:19:49Z")

</div>

I have a .txt-file with all titels from songs. They are listed simply under eachother in a list.

With Convert Textfile to Tag I can add those to the tag Title.

While that works perfect, I prefer to have it as a action. So I can do more actions at once, to save time eventually.

Can this be done?

 ![image](https://community.mp3tag.de/uploads/default/original/3X/8/e/8e365600bf5a9fcdf9bed3373a53b8024dcd7d7d.png)

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [August 9, 2025, 10:23pm UTC](https://community.mp3tag.de/t/get-info-from-textfile-as-action/69366/2 "2025-08-09T22:23:06Z")

</div>

Have you tried the Action from Type "Import Text File" yet?

> **[Import Text File – Mp3tag Documentation](https://docs.mp3tag.de/actions/import-text/)**
>
> Documentation on the Import Text File action type that can be performed as Quick Action or as reusable workflow from Action Groups. Mp3tag is the universal Tag Editor.

---

<div class="post-metadata">

### Author: ![popmarter1](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/e99b99/32.png) [@popmarter1](https://community.mp3tag.de/u/popmarter1)
#### Post date: [August 10, 2025, 5:56am UTC](https://community.mp3tag.de/t/get-info-from-textfile-as-action/69366/3 "2025-08-10T05:56:33Z")

</div>

Yes i have. But it ends up like this:

 ![image](https://community.mp3tag.de/uploads/default/original/3X/d/2/d25596b0842ccbc295f829e836b5e6dd58ce6043.png)

---

<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: [August 10, 2025, 7:24am UTC](https://community.mp3tag.de/t/get-info-from-textfile-as-action/69366/4 "2025-08-10T07:24:43Z")

</div>

> [@popmarter1](#):
>
> Can this be done?

Not at the moment.  
Currently the functions to import data from text files are split like that there is a converter to import from a single text file several fields to several tracks and an action that allows to import a single field from several text files to several tracks.

---

<div class="post-metadata">

### Author: ![popmarter1](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/e99b99/32.png) [@popmarter1](https://community.mp3tag.de/u/popmarter1)
#### Post date: [August 10, 2025, 7:36am UTC](https://community.mp3tag.de/t/get-info-from-textfile-as-action/69366/5 "2025-08-10T07:36:46Z")

</div>

Thanks for clearing that. 👍

---

<div class="post-metadata">

### Author: ![7stones](https://community.mp3tag.de/user_avatar/community.mp3tag.de/7stones/32/17075_2.png) [@7stones](https://community.mp3tag.de/u/7stones)
#### Post date: [August 10, 2025, 10:42am UTC](https://community.mp3tag.de/t/get-info-from-textfile-as-action/69366/6 "2025-08-10T10:42:24Z")

</div>

> [@popmarter1](#):
>
> I prefer to have it as a action. So I can do more actions at once, to save time eventually.

It seems you have textfiles for many albums? If so you could setup an action group.

If the textfile has windows style line breaks, this action group should work:

```auto
1. Import the textfile to a temporary field, e.g. TEMPTITLE

2. Format value string for TEMPTITLE: $replace(%temptitle%,$char(13)$char(10),\\)

3. Several Format value strings for TITLE:

$if($eql(%track%,1),$meta(temptitle,0),%title%)

$if($eql(%track%,2),$meta(temptitle,1),%title%)

$if($eql(%track%,3),$meta(temptitle,2),%title%)

and so on. If your track numbers have leading zeros then adjust the strings accordingly.

4. Remove fields: TEMPTITLE

```

Hope this helps.

---

<div class="post-metadata">

### Author: ![popmarter1](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/e99b99/32.png) [@popmarter1](https://community.mp3tag.de/u/popmarter1)
#### Post date: [August 10, 2025, 12:33pm UTC](https://community.mp3tag.de/t/get-info-from-textfile-as-action/69366/8 "2025-08-10T12:33:20Z")

</div>

Excellent! This works! Thanks so much.

This is how it looks, made a few extra lines to cover recordings with lots of tracks:

 ![image](https://community.mp3tag.de/uploads/default/original/3X/f/a/fa783c6785a7b94bbb918c4589a8643ee5e84d68.png)

---

<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: [August 10, 2025, 12:33pm UTC](https://community.mp3tag.de/t/get-info-from-textfile-as-action/69366/9 "2025-08-10T12:33:51Z")

</div>

> [@7stones](#):
>
> `If your track numbers have leading zeros then adjust the strings accordingly.`

You could reduce TRACK to its numerical value without fancy padding or added total number of tracks with:  
`$num(%track%,1)`  
The expression would then look like  
`$if($eql($num(%track%,1),1),$meta(temptitle,0),%title%)`

Even though I admire the solution which shows once again tha MP3tag provides ways for almost any problem, I have my diffculties to see how this procedure should

> [@popmarter1](#):
>
> save time eventually

I see quite an effort in the preparation of the files (have to have the correct track numbers) and adapting the action to the number of treated files.  
IMHO the converter way which simply takes the text file and assigns the first record from the text file to the first selected file is much quicker.

---

<div class="post-metadata">

### Author: ![7stones](https://community.mp3tag.de/user_avatar/community.mp3tag.de/7stones/32/17075_2.png) [@7stones](https://community.mp3tag.de/u/7stones)
#### Post date: [August 10, 2025, 1:54pm UTC](https://community.mp3tag.de/t/get-info-from-textfile-as-action/69366/10 "2025-08-10T13:54:54Z")

</div>

> [@ohrenkino](#):
>
> You could reduce TRACK to its numerical value without fancy padding or added total number of tracks with:  
> `$num(%track%,1)`  
> The expression would then look like  
> `$if($eql($num(%track%,1),1),$meta(temptitle,0),%title%)`

Of course, I forgot about $num. Better this way.

---

<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: [September 9, 2025, 1:55pm UTC](https://community.mp3tag.de/t/get-info-from-textfile-as-action/69366/11 "2025-09-09T13:55:52Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
