Unless something has changed in the past few months...
You can completely avoid the weight limitation in trash cans simply by securing them. This would effectively remove the need for you to bother with watching the weight of the container.
And if memory still serves. When the can gets to 125 items, it auto deletes everything in the barrel.
If these things still hold true, your script just got a whole lot easier to create.
