# How do you run scripts?

**URL:** https://community.mp3tag.de/t/how-do-you-run-scripts/60741
**Category:** Support
**Created:** [April 19, 2023, 11:10am UTC](https://community.mp3tag.de/t/how-do-you-run-scripts/60741 "2023-04-19T11:10:31Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Chumbo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/e480ec/32.png) [@Chumbo](https://community.mp3tag.de/u/Chumbo)
#### Post date: [April 19, 2023, 11:10am UTC](https://community.mp3tag.de/t/how-do-you-run-scripts/60741/1 "2023-04-19T11:10:31Z")

</div>

Hi,  
I'm using ChatGPT to write me scripts but since it's resources date back to 2021, I think the GUI of Mp3Tag has changed too much because all the steps it tells me to carry out in the GUI are not there.  
So in theory I have the code, I just need to know how to run it?  
Thanks in advance!  
Chumbo

---

<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: [April 19, 2023, 11:15am UTC](https://community.mp3tag.de/t/how-do-you-run-scripts/60741/2 "2023-04-19T11:15:22Z")

</div>

What scripts could you have in mind?  
See here for the command line interface:

> **[Command Line Interface – Mp3tag Documentation](https://docs.mp3tag.de/command-line/)**
>
> Overview on command-line parameters to be used with Mp3tag. Mp3tag is the universal Tag Editor.

---

<div class="post-metadata">

### Author: ![Chumbo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/e480ec/32.png) [@Chumbo](https://community.mp3tag.de/u/Chumbo)
#### Post date: [April 19, 2023, 11:33am UTC](https://community.mp3tag.de/t/how-do-you-run-scripts/60741/3 "2023-04-19T11:33:11Z")

</div>

Thanks but I'm not sure how that helps? I don't see the answer to my question?  
I'm not looking for help with regard to the script itself, there I rely on ChatGPT which has been pretty consistently great with all programming questions.  
I just don't know how to run the script now that I have the code?

---

<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: [April 19, 2023, 11:37am UTC](https://community.mp3tag.de/t/how-do-you-run-scripts/60741/4 "2023-04-19T11:37:51Z")

</div>

Which brings me back to the question: what kind of script is that supposed to be and wwhat should it do in the context of MP3tag that you got generated by ChatGPT?

Here is a very similar question:

> [@How do I run a script](https://community.mp3tag.de/t/how-do-i-run-a-script/60453):
>
> I havent the foggiest idea of how to run a script. I found the following to create .cue files but dont know where to start to run it. I also need to run it on on m4b files so i guess I have to change a few things. Just knowing thats possible would be great. $filename(%album%.cue,utf-8)PERFORMER "$iflonger(%albumartist%,0,%albumartist%,%artist%)" TITLE "%album%" $loop(%\_filename\_rel%)FILE "%\_filename\_rel%" $if($eql($upper(%\_extension%),MP3),MP3,WAVE) TRACK $right(0%track%,2) AUDIO TITLE "%t…

---

<div class="post-metadata">

### Author: ![Chumbo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/e480ec/32.png) [@Chumbo](https://community.mp3tag.de/u/Chumbo)
#### Post date: [April 19, 2023, 12:02pm UTC](https://community.mp3tag.de/t/how-do-you-run-scripts/60741/5 "2023-04-19T12:02:18Z")

</div>

I'm not sure how to answer? What do you mean by "kind of script"? How many kinds are there? (if my question sounds dumb, bare in mind I'm not a programmer, I only have extremely basic notions of coding. Like maybe 1 month of training in Python)

The reason for the script...  
In the 'Artist' field, there is the name of the main artist + collaborators. I would like to have only the main artist in the 'Artist' field and move the collaborators as a 'Comment' to each corresponding file.

Yes, I had seen that post but what I'm trying to do has nothing to do with .cue files.

---

<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: [April 19, 2023, 12:09pm UTC](https://community.mp3tag.de/t/how-do-you-run-scripts/60741/6 "2023-04-19T12:09:41Z")

</div>

If you want to treat the contents of fields then I would recommend actions or in some cases Convert\>Tag-Tag.

As you have gathered from the linked thread there are apparently export scripts. I would also count action groups and web source scripts to have a script-like character. But none of them can be called externally.  
I was puzzled that you

> [@Chumbo](#):
>
> think the GUI of Mp3Tag has changed too much

AFAI understand scripts, you have to call the script interpreter somehow and tell it to execute a script. One way would be to call the program and the script with a command line instruction. But there is no such call for MP3tag.

Right now it would be nice if you could either show us the script that would do what you intend but fails because the GUI has allegedly failed or describe/show the real problem.

See also here:

> [@Hints for asking Support Requests](https://community.mp3tag.de/t/hints-for-asking-support-requests/56190):
>
> If you need support using Mp3tag, you can help the community members that are about to support you in finding a solution or workaround to your problem, by following these simple guidelines. Be descriptive, also in what you’ve already tried Please give a short explanation what’s not working as expected or what you’re trying to achieve. It’s best to know any details about the problem at hand and especially, what steps you’ve already tried to solve it by yourself. Helpful information also includ…

---

<div class="post-metadata">

### Author: ![MotleyG](https://community.mp3tag.de/user_avatar/community.mp3tag.de/motleyg/32/440_2.png) [@MotleyG](https://community.mp3tag.de/u/MotleyG)
#### Post date: [April 19, 2023, 12:34pm UTC](https://community.mp3tag.de/t/how-do-you-run-scripts/60741/7 "2023-04-19T12:34:14Z")

</div>

Without using the term “script” it would be more helpful if you would just show what you are trying to do.

> [@Chumbo](#):
>
> In the 'Artist' field, there is the name of the main artist + collaborators. I would like to have only the main artist in the 'Artist' field and move the collaborators as a 'Comment' to each corresponding file.

This is something that can easily be done directly from within mp3tag and does not require anything external. But some specific examples would help to clarify. If your current Artist really does contain the format of “main artist + collaborators” you could use the Action called Guess Values.

Source: `%artist%`  
Target string: `%artist% + %comment%`

---

<div class="post-metadata">

### Author: ![Chumbo](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/c/e480ec/32.png) [@Chumbo](https://community.mp3tag.de/u/Chumbo)
#### Post date: [April 19, 2023, 12:47pm UTC](https://community.mp3tag.de/t/how-do-you-run-scripts/60741/8 "2023-04-19T12:47:22Z")

</div>

Ok, great thanks! A lot to read but unfortunately I have to leave now so I'll read all this carefully when I'm back later. 🙂

---

<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: [May 19, 2023, 12:47pm UTC](https://community.mp3tag.de/t/how-do-you-run-scripts/60741/9 "2023-05-19T12:47:33Z")

</div>

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