Applescript to check image size

I was recently asked to provide an easy way to check a photos printable size at a given resolution on Mac OS. Here is the applescript I came up with.. Simply drag an image file (jpg, tiff, png, psd etc..) on to the icon, and it will tell you the maximum printable size at 300 dpi.