Create a dialog to set tags

Use this command below:
SetAttr META Tags:{dlgchoose|Add Tags?|Temp+Archives}
I could set the tag with "Temp" or "Archives".

Use this command below:
SetAttr META Tags:+{dlgchoose|Add Tags?|Temp+Archives}
I could set the tag with "Temp" and "Archives".

Here is my question?
How to integrate the funtion in a choose list with add tags and remove tags and clear all tags in one dialog. so I can use command like this:
SetAttr META Tags:{dlgchoose|Edit Tags?|ClearTags=""+Temp+"-Temp"+Archives+"-Temp"+"-Archives"}

1 Like

A script could use the Dialog object to display a checkbox list of your tags, with the ones the file already has selected, allowing tags to be toggled on and off.

The Metadata object allows scripts to find out which tags a file has.