In the space above where you type your entries you can set bold, italic, etc. and the
</> button sets any selected text as code …
like so. Using the code markup stops the forum software mangling the quotes in your code. So, I read your OnAdd code as follows, placing each discrete expression of a new line just for clarity here (and not needed in the app itself):
The $Color expression only works through legacy support, it is better written as:
I see you are adding 3 tags in 3 commands. That works but can also be written more succinctly as:
Lists are stored as semi-colon delimited strings - which is how you see them when shown as Key Attributes. In the last example above, Tinderbox with the the single string as actually a list of 3 discrete value to add to $Tags. That said, use which ever form (1 expression or 3) as suits you!