This could be done using macro’s. I think you can find most of the code on BOB.
here’s a page with utilities to work the other way. I guess you can modify them to your needs
https://bobj-board.org/t/59650
Regards,
Gerard
highandstoned (BOB member since 2005-08-01)