# Batch adding tags

**URL:** https://resource.dopus.com/t/batch-adding-tags/40756
**Category:** Help & Support
**Created:** [March 8, 2022, 8:24pm UTC](https://resource.dopus.com/t/batch-adding-tags/40756 "2022-03-08T20:24:25Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![arniejay](https://resource.dopus.com/letter_avatar_proxy/v4/letter/a/dec6dc/32.png) [@arniejay](https://resource.dopus.com/u/arniejay)
#### Post date: [March 8, 2022, 8:24pm UTC](https://resource.dopus.com/t/batch-adding-tags/40756/1 "2022-03-08T20:24:25Z")

</div>

How can I add a tag to a single file or a group of files which already have tags attached to them, without removing the pre-existing tags?  
An example: Three files, each with a tag: Bob, Elle, Erika. I want to select them all and add the "absent" tag to the three of them without removing the respective Bob, Elle and Erika specific to each.

---

<div class="post-metadata">

### Author: ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)
#### Post date: [March 9, 2022, 11:05am UTC](https://resource.dopus.com/t/batch-adding-tags/40756/2 "2022-03-09T11:05:04Z")

</div>

Please [link your account](https://resource.dopus.com/link-opus).

---

<div class="post-metadata">

### Author: ![arniejay](https://resource.dopus.com/letter_avatar_proxy/v4/letter/a/dec6dc/32.png) [@arniejay](https://resource.dopus.com/u/arniejay)
#### Post date: [March 9, 2022, 1:11pm UTC](https://resource.dopus.com/t/batch-adding-tags/40756/3 "2022-03-09T13:11:24Z")

</div>

I'll have to remake my topic then, I got the wrong account for it here.

---

<div class="post-metadata">

### Author: ![arniejay](https://resource.dopus.com/letter_avatar_proxy/v4/letter/a/dec6dc/32.png) [@arniejay](https://resource.dopus.com/u/arniejay)
#### Post date: [March 9, 2022, 1:28pm UTC](https://resource.dopus.com/t/batch-adding-tags/40756/4 "2022-03-09T13:28:22Z")

</div>

I can't seem to link it. It says my code is already linked to another account and I can't find why.

---

<div class="post-metadata">

### Author: ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)
#### Post date: [March 9, 2022, 4:09pm UTC](https://resource.dopus.com/t/batch-adding-tags/40756/5 "2022-03-09T16:09:43Z")

</div>

Looks like goalposthead is your original/linked account. I can unlink it if you want to link this one instead.

Re the tags, you can put a `+` before the tag name to say you want to add it to existing tags. For example, select several files and open the metadata panel, and the tags value might say "multiple values". Click on it and type `+newtag` and then click apply and it will add "newtag" to the existing ones.

This also works in commands if you need buttons that add/remove one tag without affecting the others.

As always, give it a try on some test files/copies to make sure it's working you expect before mass-changing things.

---

<div class="post-metadata">

### Author: ![arniejay](https://resource.dopus.com/letter_avatar_proxy/v4/letter/a/dec6dc/32.png) [@arniejay](https://resource.dopus.com/u/arniejay)
#### Post date: [March 9, 2022, 4:31pm UTC](https://resource.dopus.com/t/batch-adding-tags/40756/6 "2022-03-09T16:31:55Z")

</div>

Sure, unlinking my account so I can rehook this one instead would be nice, thanks.  
How would I go about to make this a button then? I tried creating a enw command button but I don't know what formula to give it.

---

<div class="post-metadata">

### Author: ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)
#### Post date: [March 9, 2022, 5:30pm UTC](https://resource.dopus.com/t/batch-adding-tags/40756/7 "2022-03-09T17:30:40Z")

</div>

I've transferred the link over. You shouldn't need to do anything else.

For the command, something like this:

```nohighlight
SetAttr META "tags:+my tag"

```

Or change the `+` to `-` to remove a tag.

---

<div class="post-metadata">

### Author: ![arniejay](https://resource.dopus.com/letter_avatar_proxy/v4/letter/a/dec6dc/32.png) [@arniejay](https://resource.dopus.com/u/arniejay)
#### Post date: [March 9, 2022, 6:08pm UTC](https://resource.dopus.com/t/batch-adding-tags/40756/8 "2022-03-09T18:08:06Z")

</div>

Thanks for the transfer 🙂 About the command, the one you give here will add whatever has been coded in it but if I'm going to add many different metadata tags on several occasions, I can't recode a command button for every occasion. What I'd like to achieve is to select files, click a button and type in a pop up box what tag I want to add to them without destroying previously added tags. For quick mass editing of tags, in fact.

---

<div class="post-metadata">

### Author: ![Leo](https://resource.dopus.com/user_avatar/resource.dopus.com/leo/32/69732_2.png) [@Leo](https://resource.dopus.com/u/Leo)
#### Post date: [March 9, 2022, 6:13pm UTC](https://resource.dopus.com/t/batch-adding-tags/40756/9 "2022-03-09T18:13:42Z")

</div>

```nohighlight
SetAttr META "tags:+{dlgstring|Enter tag to add:}"

```

---

<div class="post-metadata">

### Author: ![arniejay](https://resource.dopus.com/letter_avatar_proxy/v4/letter/a/dec6dc/32.png) [@arniejay](https://resource.dopus.com/u/arniejay)
#### Post date: [March 9, 2022, 6:34pm UTC](https://resource.dopus.com/t/batch-adding-tags/40756/10 "2022-03-09T18:34:10Z")

</div>

Yes!~~~ That covers it perfectly, I added it and its "remove" counterpart. It's exactly what I needed. Thanks a bunch, Leo 🙂
