Add artboard with JavaScript in Illustrator CS5.1

I’m trying to pull together set of scripts to help with android/ios graphic resources development. I can export artwork to PNG but results due to scaling are not satisfactory. This means that the scaling and adjusting graphic vectors needs to be done by the graphic designer. To help him in this I want to create a script that will produce set of artboards with given name and base dimensions.
Continue reading