func init // checks installation Adobe Photoshop and adds references include("AdobePhotoshop") end func doResizeImage(data) blk.println(d("Document", 20), '.ResizeImage(', d("Width", 7), ', ', d("Height", 7), ', ', d("Resolution", 7), ', ', d("ResampleMethod", 20), ');') end func doResizeImage2(data) blk.println(d("Document", 20), '.ResizeImage(', d("Width", 7), ', ', d("Height", 7), ', ', d("Resolution", 7), ', Type.Missing);') end func doResizeImage3(data) blk.println(d("Document", 20), '.ResizeImage(', d("Width", 7), ', ', d("Height", 7), ', Type.Missing, ', d("ResampleMethod", 20), ');') end func doResizeImage4(data) blk.println(d("Document", 20), '.ResizeImage(', d("Width", 7), ', ', d("Height", 7), ', Type.Missing, Type.Missing);') end