DIY: Automap in Ableton Live with Novation Nocturn

There are many people out there using the Novation Nocturn (me included), since it was one of the first controllers that did a lot for little money. The tight integration between hardware and software does the trick. Having read about the Automap-feature made me really looking forward to get this device into my hands, since it’s always such a hassle to manually assign each and every control you have.
However, the Automap-feature turned out to be useless for me. It works only with AU/VST-Plugins. Not right in Ableton itself. You can control Live with it, though: Turn on a Midichannel in the Automap server software and manually map Midi-controls within Live (see Novation FAQ for this). But this technique clearly has not the same ease-of-use and awesomeness as the Automapping feature.
I want to easily control Rack-Macros on the fly. Without assigning the knobs individually! And guess what? There is a way! There is a small hidden feature inside Live called Midi Remote Scripting. I recently read about it on CDM, did a custom script for my Nocturn, and – tadaa – Automapping inside of Live. Peter shared his Config-files for both Korg’s nanoPAD and nanoKONTROL. So I will share mine for the Nocturn, so you will not have to read the whole article on how to do it yourself. Just follow the steps!