Help with a Tag Automation

Hi,

Can someone help me to find a solution to adjust this code to be able to replace one of this specific tags (and not the others) with ‘Aguardando’:

Tag 1: Focus
Tag 2: Seguintes
Tag 3: Purgatório

aguardando.omnijs (1.4 KB)

Thanks in advance to someone who can help me!

I haven’t tested it, but I think you should be able to update line 22:

from x.removeTags(x.tags)

to x.removeTags([tagNamed("Focus"), tagNamed("Seguintes"), tagNamed("Purgatório")])

Incidentally, that assumes that all four of the tags are on the top level of the tag hierarchy. If that’s not the case, you can chain multiple tagNamed arguments together to target the specific tag that you want.

1 Like

Thank you so much Kaitlin!

1 Like

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