# Combination of script commands

**URL:** https://community.mp3tag.de/t/combination-of-script-commands/1135
**Category:** Support
**Created:** [July 14, 2004, 7:38am UTC](https://community.mp3tag.de/t/combination-of-script-commands/1135 "2004-07-14T07:38:47Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![mll](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/6a8cbe/32.png) [@mll](https://community.mp3tag.de/u/mll)
#### Post date: [July 14, 2004, 7:38am UTC](https://community.mp3tag.de/t/combination-of-script-commands/1135/1 "2004-07-14T07:38:47Z")

</div>

Hi,

First, many thanks for Florian for making this great app free. And congratulations to you for the boost in usability, performance and power : I had tried MP3Tag some years ago, and chose at that time to turn to MP3 Tag Studio. I'm glad I recently gave MP3Tag a try again, it's now my primary music files tage editor ! 🙂 BTW, I guess the name should be changed : MP3Tag happens to work fine on my MPCs. 😉

Now for my question :  
I'd like to apply script commands this kind :

```
$validate($replace("%track% - %title%", "/", "-"), "_")

```

or even better :

```
$validate($replace("%track%", "/", "-") & " - %title%", "_")

```

unfortunately, I get this reply

> [@](#):
>
> [unrecognized variable or operator: $]

So, can we use multiple script commands ? Is there a text concatenation operator (didn't find anything about this in the help & -english- forum).

TIA

MLL

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [July 14, 2004, 4:45pm UTC](https://community.mp3tag.de/t/combination-of-script-commands/1135/2 "2004-07-14T16:45:29Z")

</div>

I'm glad that you like Mp3tag 🙂 Thanks for your feedback!

You can use $validate(replace("%track% - %title%", "/", "-"), "\_") to use both functions.

Best regards,  
~ Florian

---

<div class="post-metadata">

### Author: ![mll](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/6a8cbe/32.png) [@mll](https://community.mp3tag.de/u/mll)
#### Post date: [July 14, 2004, 5:58pm UTC](https://community.mp3tag.de/t/combination-of-script-commands/1135/3 "2004-07-14T17:58:49Z")

</div>

Thanks for the quick reply. But what if I want to substitute "/" for "-" only to the track field, and not the rest, while validating the whole ?

Something like this :

```
$validate(replace("%track%", "/", "-") & " - %title%", "_")

```

gives me a [syntax error: &], my assumption of "&" being the text concatenation operator being wrong.

TIA

MLL

---

<div class="post-metadata">

### Author: ![Florian](https://community.mp3tag.de/user_avatar/community.mp3tag.de/florian/32/5759_2.png) [@Florian](https://community.mp3tag.de/u/Florian)
#### Post date: [July 14, 2004, 6:09pm UTC](https://community.mp3tag.de/t/combination-of-script-commands/1135/4 "2004-07-14T18:09:16Z")

</div>

I'm sorry, but there's no concatenation operator at the moment. I think you can use $replace("%track%", "/", "-") - $validate("%title%", "\_")  
because it's very unlikely, that there are other special characters in your TRACK fields which needs validating.

Best regards,  
~ Florian

---

<div class="post-metadata">

### Author: ![mll](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/m/6a8cbe/32.png) [@mll](https://community.mp3tag.de/u/mll)
#### Post date: [July 14, 2004, 7:17pm UTC](https://community.mp3tag.de/t/combination-of-script-commands/1135/5 "2004-07-14T19:17:11Z")

</div>

Yes, that'll do. Thanks ! 🙂

MLL

---

<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 9, 2026, 12:19pm UTC](https://community.mp3tag.de/t/combination-of-script-commands/1135/6 "2026-02-09T12:19:14Z")

</div>


