This is a bit of a nasty hack, but it is difficult to do AFAIK
without a subprocess call to an external program.