# Replace ARTISTSORT with ARTIST

**URL:** https://community.mp3tag.de/t/replace-artistsort-with-artist/57367
**Category:** Support
**Created:** [May 22, 2022, 1:25pm UTC](https://community.mp3tag.de/t/replace-artistsort-with-artist/57367 "2022-05-22T13:25:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![potato](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/a6a055/32.png) [@potato](https://community.mp3tag.de/u/potato)
#### Post date: [May 22, 2022, 1:25pm UTC](https://community.mp3tag.de/t/replace-artistsort-with-artist/57367/1 "2022-05-22T13:25:20Z")

</div>

Hello,  
I want to create an action to

- Check if ARTIST and ARTISTSORT are the same
- If they are the same, do nothing
- If they are not the same, replace ARTISTSORT with ARTIST

(I know how to do a simple bulk replace, but I don't want to touch files unecessarily)

Any help with the scripting is appreciated,

---

<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: [May 22, 2022, 1:31pm UTC](https://community.mp3tag.de/t/replace-artistsort-with-artist/57367/2 "2022-05-22T13:31:09Z")

</div>

> [@potato](#):
>
> but I don't want to touch files unecessarily

During the execution of actions every file is touched - so you would only reach your goal if you filter first for the files that you really want to treat.  
E.g.  
`"$if($eql(%artist%,%artistsort%),1,0)" IS 0`

Then execute the replacement as you

> [@potato](#):
>
> know how to do a simple bulk replace

(on another note: would you notice the difference afterwards? I mean: prior to the treatment, some pairs are the same, some are not and afterwards, all pairs are the same. And if you copy ARTIST to ARTISTSORT, then I would assume that it really does not matter whether you have filled ARTISTSORT at all as the player would take the ARTIST field anyway if there is no data in ARTISTSORT.)

---

<div class="post-metadata">

### Author: ![potato](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/p/a6a055/32.png) [@potato](https://community.mp3tag.de/u/potato)
#### Post date: [May 22, 2022, 3:13pm UTC](https://community.mp3tag.de/t/replace-artistsort-with-artist/57367/3 "2022-05-22T15:13:08Z")

</div>

Thanks for the suggestion

---

<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: [June 21, 2022, 3:13pm UTC](https://community.mp3tag.de/t/replace-artistsort-with-artist/57367/4 "2022-06-21T15:13:27Z")

</div>

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