# script to input character(s) to any field of choice?

**URL:** https://community.mp3tag.de/t/script-to-input-character-s-to-any-field-of-choice/15108
**Category:** General Discussion
**Created:** [October 15, 2013, 3:37pm UTC](https://community.mp3tag.de/t/script-to-input-character-s-to-any-field-of-choice/15108 "2013-10-15T15:37:52Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![fohrums](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/8c91f0/32.png) [@fohrums](https://community.mp3tag.de/u/fohrums)
#### Post date: [October 15, 2013, 3:37pm UTC](https://community.mp3tag.de/t/script-to-input-character-s-to-any-field-of-choice/15108/1 "2013-10-15T15:37:52Z")

</div>

I have a section in my library I label as [UNOFFICIAL] and I created an action group that would pre-define what should be placed in what field. One problem is I like to add the actual word itself "[UNOFFICIAL]" to the end of the %title% field. I couldn't find any scripting function that would be able to do that.

---

<div class="post-metadata">

### Author: ![DetlevD](https://community.mp3tag.de/user_avatar/community.mp3tag.de/detlevd/32/123_2.png) [@DetlevD](https://community.mp3tag.de/u/DetlevD)
#### Post date: [October 15, 2013, 4:12pm UTC](https://community.mp3tag.de/t/script-to-input-character-s-to-any-field-of-choice/15108/2 "2013-10-15T16:12:39Z")

</div>

You can use such a format string ...

**%TITLE%' [UNOFFICIAL]'**

DD.20131015.2013.CEST

---

<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: [October 15, 2013, 4:13pm UTC](https://community.mp3tag.de/t/script-to-input-character-s-to-any-field-of-choice/15108/3 "2013-10-15T16:13:38Z")

</div>

> [@fohrums](#):
>
> I have a section in my library I label as [UNOFFICIAL] and I created an action group that would pre-define what should be placed in what field. One problem is I like to add the actual word itself "[UNOFFICIAL]" to the end of the %title% field. I couldn't find any scripting function that would be able to do that.

Yours is one of the FAQs: [/t/967/1](https://community.mp3tag.de/t/967/1)

---

<div class="post-metadata">

### Author: ![fohrums](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/8c91f0/32.png) [@fohrums](https://community.mp3tag.de/u/fohrums)
#### Post date: [October 16, 2013, 5:21am UTC](https://community.mp3tag.de/t/script-to-input-character-s-to-any-field-of-choice/15108/4 "2013-10-16T05:21:50Z")

</div>

Thank you. My question was found in the FAQs listed under

How do I append the string " xyz" to the content of a tag-field?

![:w00t:](https://community.mp3tag.de/uploads/default/original/1X/cb01eca72fe9339ff6f3ec9f1e3c5fe002be0f0a.gif ":w00t:")

---

<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: [October 16, 2013, 6:26am UTC](https://community.mp3tag.de/t/script-to-input-character-s-to-any-field-of-choice/15108/5 "2013-10-16T06:26:09Z")

</div>

With an action of the type "Format value" for that field.  
The format string for e.g. TITLE would then be:  
%title% '[UNOFFICIAL]'

In your case you have to put the [ in ' as it otherwise would be treated as an indicator for optional information.

---

<div class="post-metadata">

### Author: ![fohrums](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/8c91f0/32.png) [@fohrums](https://community.mp3tag.de/u/fohrums)
#### Post date: [October 16, 2013, 8:26am UTC](https://community.mp3tag.de/t/script-to-input-character-s-to-any-field-of-choice/15108/6 "2013-10-16T08:26:43Z")

</div>

> [@ohrenkino](#):
>
> In your case you have to put the [ in ' as it otherwise would be treated as an indicator for optional information.

Actually not in my case. I have it set up like how DetlevD posted:

%TITLE%' [UNOFFICIAL]'

where I need that extra space between the end of %title%.  
This is working for me because I don't have any other functions added so the bracket and the placement of the apostrophe is not an issue.
