To follow up on this, Big Sur changed the xpath version, which breaks
the script linked above. There are a few possible fixes. I chose to
follow Armin Briegel's example and just declare a local function named
xpath that checks the OS version and pars...