# Set TRACK in scripts HACK.

**URL:** <https://community.mp3tag.de/t/set-track-in-scripts-hack/18921>\
**Category:** Web Sources Discussion\
**Created:** [April 24, 2017, 11:04pm UTC](https://community.mp3tag.de/t/set-track-in-scripts-hack/18921 "2017-04-24T23:04:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)\
**Post date:** [April 24, 2017, 11:04pm UTC](https://community.mp3tag.de/t/set-track-in-scripts-hack/18921/1 "2017-04-24T23:04:24Z")

</div>

If you place this at the end of your script...

```
set "TRACK"

```

You will still get the TRACK in the main tag info window resulting in it tagging the TRACK TAG.

There's a solution by placing 500, for example (Which should be enough), |'s at the end of your script like so in conjunction with # set "TRACK" (Optional) if you place that option at the end:

```
    outputto "track"
    say "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||"

# set "TRACK"

```

I'm pretty sure this may be a bug. But, I'm not certain. Anyway, here lies a solution.

Can someone test and report back if it's okay?

---

<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 1, 2017, 4:17pm UTC](https://community.mp3tag.de/t/set-track-in-scripts-hack/18921/2 "2017-07-01T16:17:56Z")

</div>

> [@stevehero](#):
>
> Can someone test and report back if it's okay?

It's not. Can you check if you're really using

```
set "TRACK"

```

to clear the content of the "TRACK" output buffer in your script (without the #, which would comment out this line).

Kind regards  
– Florian

---

<div class="post-metadata">

**Author:** ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)\
**Post date:** [July 1, 2017, 9:09pm UTC](https://community.mp3tag.de/t/set-track-in-scripts-hack/18921/3 "2017-07-01T21:09:29Z")

</div>

> [@Florian](#):
>
> It's not. Can you check if you're really using
> 
> ```
> set "TRACK"
> 
> ```
> 
> to clear the content of the "TRACK" output buffer in your script (without the #, which would comment out this line).
> 
> Kind regards  
> – Florian

I was sure that this was occurring with a previous version.

I 100% had the TRACK set.

Seems fine now.

---

<div class="post-metadata">

**Author:** ![pone](https://community.mp3tag.de/user_avatar/community.mp3tag.de/pone/32/272_2.png) [@pone](https://community.mp3tag.de/u/pone)\
**Post date:** [July 25, 2017, 9:49pm UTC](https://community.mp3tag.de/t/set-track-in-scripts-hack/18921/4 "2017-07-25T21:49:10Z")

</div>

Easier and working fine with my discogs scripts:

```
# Delete TITLE Field
set "title"
outputto "title"
say "|"    

# Delete TRACK Field
set "track"
outputto "track"
say "|"

```

I did quite a lot of testing until I had it going. I think I remember it's important to use the two command blocks in this order to get both working. And to use it at the very end of the script.

---

<div class="post-metadata">

**Author:** ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)\
**Post date:** [July 26, 2017, 10:04am UTC](https://community.mp3tag.de/t/set-track-in-scripts-hack/18921/5 "2017-07-26T10:04:45Z")

</div>

QUOTE (pone @ Jul 26 2017, 00:49) \<{POST\_SNAPBACK}\>

Easier and working fine with my discogs scripts:

```
# Delete TITLE Field
set "title"
outputto "title"
say "|"    

# Delete TRACK Field
set "track"
outputto "track"
say "|"

```

I did quite a lot of testing until I had it going. I think I remember it's important to use the two command blocks in this order to get both working. And to use it at the very end of the script.

  
So the initial bug find is there you think?

I've been busy so haven't had time to source the script which I had problems with. Think I may have deleted it.

```
set "TRACK"

```

doesn't work
