Smart Rule & AppleScript

I use one of the DEVONthink scripts to make Omnifocus to-do’s from DEVONthink documents, and it works fine.

When I copy the AppleScript from the script library, and create a Smart Rule to execute that script when I change the label of a document to “Todo,” nothing happens.

What trigger should I be using in the Smart Rule?

The scripts inside the Scripts menu usually use the current selection whereas scripts of smart rules should perform the necessary actions only on the provided records. Therefore this script would require several changes to make it compatible to smart rules (and ideally smart rules and the used scripts should work faceless and not require user input).