# Copy only "mixartist" from TITLE to MIXARTIST?

**URL:** https://community.mp3tag.de/t/copy-only-mixartist-from-title-to-mixartist/59794
**Category:** Mac
**Created:** [January 25, 2023, 6:11pm UTC](https://community.mp3tag.de/t/copy-only-mixartist-from-title-to-mixartist/59794 "2023-01-25T18:11:55Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![DJMaytag](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/cc9497/32.png) [@DJMaytag](https://community.mp3tag.de/u/DJMaytag)
#### Post date: [January 25, 2023, 6:11pm UTC](https://community.mp3tag.de/t/copy-only-mixartist-from-title-to-mixartist/59794/1 "2023-01-25T18:11:55Z")

</div>

Sorry if this is a simple request, but my files are in the format:

BPM - ENERGYLEVEL - INITIALKEY - ARTIST - TITLE [**MIXARTIST**]

and the only way I know to copy just the portion inside the [] area is to use TAG -\> FILENAME (to make sure it's correct) and then FILENAME -\> TAG (_using %BPM% - %ENERGYLEVEL% - %INITIALKEY% - %ARTIST% - %TITLE% [%MIXARTIST%]_). The latter action **moves** the mix artist to the MIXARTIST field, then I have to do another FILENAME -\> TAG to get both fields populated correctly (using _%BPM% - %ENERGYLEVEL% - %INITIALKEY% - %ARTIST% - %TITLE%_).

Is there a way to create an action group to perform these operations all in one press of a button?

---

<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: [January 25, 2023, 6:33pm UTC](https://community.mp3tag.de/t/copy-only-mixartist-from-title-to-mixartist/59794/2 "2023-01-25T18:33:09Z")

</div>

You could try an action of the type "Import tag fields"  
Source: `%_filename%==$regexp(%_filename%,'.*\[(.*?)\]',$1)`  
Target string: `%BPM% - %ENERGYLEVEL% - %INITIALKEY% - %ARTIST% - %TITLE%==%MIXARTIST%`

The principle behind it: you create a string from the filename itself and then add the extracted part in the `[]. The 2 == are only there to create a unique separator.  
Please check the regular expression whether it works.

Alternatively, the 2 runs in the Converter could be:

1. `%BPM% - %ENERGYLEVEL% - %INITIALKEY% - %ARTIST% - %TITLE%`
2. `%dummy%[%MIXARTIST%]`

---

<div class="post-metadata">

### Author: ![DJMaytag](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/cc9497/32.png) [@DJMaytag](https://community.mp3tag.de/u/DJMaytag)
#### Post date: [January 25, 2023, 6:42pm UTC](https://community.mp3tag.de/t/copy-only-mixartist-from-title-to-mixartist/59794/3 "2023-01-25T18:42:24Z")

</div>

That first run didn't seem to work.

---

<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: [January 25, 2023, 6:44pm UTC](https://community.mp3tag.de/t/copy-only-mixartist-from-title-to-mixartist/59794/4 "2023-01-25T18:44:57Z")

</div>

Which version did you try?  
The action?  
Or the converter?

---

<div class="post-metadata">

### Author: ![DJMaytag](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/cc9497/32.png) [@DJMaytag](https://community.mp3tag.de/u/DJMaytag)
#### Post date: [January 25, 2023, 6:48pm UTC](https://community.mp3tag.de/t/copy-only-mixartist-from-title-to-mixartist/59794/5 "2023-01-25T18:48:10Z")

</div>

Neevermind, I believe it is working, but there's the problem of files with no mixartist involved (no [] in the title or filename).

---

<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: [January 25, 2023, 6:49pm UTC](https://community.mp3tag.de/t/copy-only-mixartist-from-title-to-mixartist/59794/6 "2023-01-25T18:49:28Z")

</div>

Yes - this is always the case: the pattern has to match the data source.  
So I would recommend to filter for files that have square brackets in the filename.

---

<div class="post-metadata">

### Author: ![DJMaytag](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/d/cc9497/32.png) [@DJMaytag](https://community.mp3tag.de/u/DJMaytag)
#### Post date: [January 25, 2023, 8:55pm UTC](https://community.mp3tag.de/t/copy-only-mixartist-from-title-to-mixartist/59794/7 "2023-01-25T20:55:07Z")

</div>

I'm still quite the noob to this stuff, so I'll have to figure out a way to filter those, or add something like "if MIXARTIST is blank, then add "Original Mix" to it. That way it'll pull that into the brackets when formatting the FILENAME.

That said, I don't care if it shows [Original Mix] in the file name, but I don't want to see that in the TITLE field (it gets messy with all those in the DJ program I use). I can hide the MIXARTIST field if needed, but still search for it, if I want the works of a certain artist (artist or remixer).

---

<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: [January 25, 2023, 9:05pm UTC](https://community.mp3tag.de/t/copy-only-mixartist-from-title-to-mixartist/59794/8 "2023-01-25T21:05:43Z")

</div>

See the documentation on filters:

> [@Filtering and Searching Files and Tags](https://community.mp3tag.de/t/filtering-and-searching-files-and-tags/53271):
>
> The Filter field in Mp3tag's toolbar allows for searching files that meet a certain criteria (e.g., the filename contains specific characters or a tag field has a specific content). To filter the file list simply start typing in the filter field. As a result, all files that contain the specified filter string in their tag or filename are listed in the file list. Sometimes it is necessary to use more complex criteria to search for files (e.g., all files of a specific genre but not of that arti…

try something like:  
`%_filename% HAS [`  
Then apply the converter that also gets the mixartist.  
To find all the other files, those without anything in square brackets, try the filter  
`NOT %_filename% HAS [`  
If you want to get rid of a certain string like "Original Mix", then use an action of the type "Replace" that replaces that string with nothing.  
I think it is fairly tricky to set exceptions for any string that might appear inside the brackets.

---

<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 24, 2023, 9:06pm UTC](https://community.mp3tag.de/t/copy-only-mixartist-from-title-to-mixartist/59794/9 "2023-02-24T21:06:35Z")

</div>

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