I don't know if you still need to know this, but you can get the screen resolution inside a script using these two variables:

screen_size.x
screen_size.y

These will tell you how many pixels in width and height your screen is (which is the resolution).