# Automatisation Formatage fichiers

**URL:** https://community.mp3tag.de/t/automatisation-formatage-fichiers/66478
**Category:** Support
**Created:** [November 9, 2024, 4:18pm UTC](https://community.mp3tag.de/t/automatisation-formatage-fichiers/66478 "2024-11-09T16:18:26Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![RYAN78](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/df788c/32.png) [@RYAN78](https://community.mp3tag.de/u/RYAN78)
#### Post date: [November 9, 2024, 4:18pm UTC](https://community.mp3tag.de/t/automatisation-formatage-fichiers/66478/1 "2024-11-09T16:18:26Z")

</div>

Bonjour,  
Je souhaiterais créer un fichier script qui automatise la mise en forme de mes fichiers comme suit:  
INTERPRETE = ARTISTE DE L'ALBUM  
PISTE = 01, 02, 03......  
POCHETTE = 1 (Covers.jpg dans le répertoire album de l'artiste)  
Nom du fichier: 01 - Exemple01.mp3, 02 - Exemple.mp3, 03 - Exemple.mp3  
Commentaire: vide, Compositeur: vide, n° de disque: vide  
Localisation: ARTISTE\ALBUM\*.mp3 \*.jpg  
Si quelqu'un peut m'aider avec tout mes remerciements

---

<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: [November 9, 2024, 4:35pm UTC](https://community.mp3tag.de/t/automatisation-formatage-fichiers/66478/2 "2024-11-09T16:35:36Z")

</div>

Please write in English or German

---

<div class="post-metadata">

### Author: ![Sergius](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@Sergius](https://community.mp3tag.de/u/Sergius)
#### Post date: [November 9, 2024, 5:06pm UTC](https://community.mp3tag.de/t/automatisation-formatage-fichiers/66478/3 "2024-11-09T17:06:46Z")

</div>

Bonjour RYAN78, bienvenue dans la communauté Mp3tag, ça me fait plaisir de vous écrire dans la langue de Molière...

Je crois que ohrenkino pourrais vous aider pour vos demandes, il est super doué, sur la communauté de Mp3tag, toutes les questions, sont de langues: Anglais et Allemand

---

<div class="post-metadata">

### Author: ![RYAN78](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/r/df788c/32.png) [@RYAN78](https://community.mp3tag.de/u/RYAN78)
#### Post date: [November 9, 2024, 5:08pm UTC](https://community.mp3tag.de/t/automatisation-formatage-fichiers/66478/4 "2024-11-09T17:08:22Z")

</div>

Good morning,  
I would like to create a script file that automates the formatting of my files as follows:  
PERFORMER = ARTIST OF THE ALBUM  
TRACK = 01, 02, 03......  
POUCH = 1 (Covers.jpg in the artist's album directory)  
File name: 01 - Example01.mp3, 02 - Example.mp3, 03 - Example.mp3  
Comment: empty, Composer: empty, disc number: empty  
Location: ARTIST\ALBUM\*.mp3 \*.jpg  
If anyone can help me with all my 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: [November 9, 2024, 6:03pm UTC](https://community.mp3tag.de/t/automatisation-formatage-fichiers/66478/5 "2024-11-09T18:03:20Z")

</div>

> [@RYAN78](#):
>
> PERFORMER = ARTIST OF THE ALBUM

See the FAQs how to copy one field to another:

> [@Actions and batch-operations](https://community.mp3tag.de/t/actions-and-batch-operations/967/15):
>
> How to copy one field value to another field? Example how to copy the content of the ARTIST field to the ALBUMARTIST field: Create a [new action](https://community.mp3tag.de/t/actions/967/2) in an existing action group or make a new action group. Action type: Format value Field: ALBUMARTIST Format string: %artist% Note: If you want to copy all possible values of a field (in case you have multiple artist fields), the internal scripting function [$meta\_sep](https://docs.mp3tag.de/scripting) can be used in the format string, e.g., $meta\_sep(artist,\\\\)

> [@RYAN78](#):
>
> TRACK = 01, 02, 03......

Best would be the track numbering wizard Ctrl-K but that does not work in actions but has to be called from the GUI.  
If you want to set an ascending number to TRACK try an action of the type "Format value" for TRACK  
Format string: `$num(%_counter%,2)`

> [@RYAN78](#):
>
> POUCH = 1 (Covers.jpg in the artist's album directory)

There is an action for that:

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

> [@RYAN78](#):
>
> File name: 01 - Example01.mp3, 02 - Example.mp3, 03 - Example.mp3

I don't know what "Example" should be and where that data comes from. Is it a fixed string? Or is it the data from TITLE?  
In general, to create filenames from tag data, see the documentation:

> **[Rename Files – Mp3tag Documentation](https://docs.mp3tag.de/converters/rename-files/)**
>
> Documentation on Tag to Filename, a converter to rename files based on tags. Mp3tag is the universal Tag Editor.

> [@RYAN78](#):
>
> Comment: empty, Composer: empty, disc number: empty

There is an action to delete fields:

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

It may be quicker to select all files, open the extended tags dialogue Alt-T and delete all unwanted fields there.

> [@RYAN78](#):
>
> Location: ARTIST\ALBUM\*.mp3 \*.jpg

I don't know what that location means. To create a folder structure from tag data is described in the documentation:

> **[Rename Files – Mp3tag Documentation](https://docs.mp3tag.de/converters/rename-files/#create-folder-structures-based-on-tags)**
>
> Documentation on Tag to Filename, a converter to rename files based on tags. Mp3tag is the universal Tag Editor.

And a request for future posts: please limit the topics in a single thread to just one. Otherwise it will become very confusing to answer the individual aspects.

---

<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: [December 9, 2024, 6:03pm UTC](https://community.mp3tag.de/t/automatisation-formatage-fichiers/66478/6 "2024-12-09T18:03:35Z")

</div>

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