Just open the Help menu within Tags and click on "Automator and Script
Examples". A Finder window opens for a folder with the examples opens
than. There are two Applescript examples in it.
I don't think you can use it for tagging items from "The Hit List".
"The Hit List" uses their own database format for the individual items
and for tagging purposes we would need a file for each entry.