Now works for Norwegian OSx

HGave a look, and see if the script still runs for you.  I've simplified it a bit and also made it compatible for my Norwegian install of OS X Mountain Lion