Creating custom event handlers with scripting

Interesting idea: