Create new tag with javascript

Hi,

i am searching long time for a solution how to add a tag to a new book with the Javascript Objects from Firefox. I looked in the sourcefile but this was not so success because there exists Zotero.Tag.exists but i am to silly for correct use! So how i can create a new tag if this tag does not exist? And what happend if a tag with same text exists twice? I was not able to found example or wiki entry or something else helpful..

Thanks for your help,
robert

This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.