Thanks for posting this. I ran the script and it didn't work (I changed the resolution to 1920 x 1080 to fit my screen). I decided, however (after implementing the script), to try the ctrl+f method (I think I hit it 3 or 4 times). In doing so, I can now play the game with fullscreen at the resolution I would like. So I guess the script did something?
Here are the specs for my iMac just in case they may be helpful:
iMac (21.5-inch, Late 2013)
2.9 GHz Intel Core i5
16 GB 1600 MHz DDR3
NVIDIA GeForce GT 750M 1024 MB
OS X El Capitan (10.11.1)