I use a Keyboard Maestro macro for this:
There are a few limitations: It will only work on one vault and possibly will break soon.
Should you want to try anyways, I can upload the file so you could import it yourself. Those red blocks are the ones that should be replaced by your own data. The rest will work just fine.