I have an issue with that last sentence!
There’s a python script lower down in the thread that should do what you want.