What you want to achieve can be accomplished using Meta Data plug-in, available in V6. It too requires a VB Script to compliment the solution.
If you would like an example, simply contact support and we can provide you with a sample, however keep in mind that it is just an example , therefore it is not supported further.