I've got a Retina MBP and I've got the same error with the script.
I edited the script to change the radio buttons to 2, 3 and 4 for b, f and h. I also tried hacking around with the radio group number etc. But I guess i don't really know how to figure out what the correct group is.
Here's what my Display Prefs look like:
https://www.dropbox.com/s/u569odzu4dd3edz/Screenshot%202013-11-05%2011.07.05.png