Looks like changing ‘context’ to ‘tag’ on line 63 is probably all that needs to be done. Should look like this:
set validSelectedItemsList to value of (selected trees where class of its value is not item and class of its value is not folder and class of its value is not tag and class of its value is not perspective)
Edit: A little easier: Can download an updated version here.