Hi,
This is something you can do in a python plugin.
This has been discussed in this topic.
HTH,
Alain