Photoshop set cropping mask, but do not crop

Hi there

Is there a way to set the dimensions for the cropping mask in photoshop. But I only want to set the width and height, but not crop the image.

Thank you in advance.

Hi. Yes, you can select a region by providing planar coordinates. This produces an arbitrary 2" x 3" selection.

tell application "Adobe Photoshop CS3"
	set settings's ruler units to pixel units
	set rez to 72
	tell (make document with properties {resolution:rez})
		set {theWidth, theHeight} to {2 * rez, 3 * rez}
		#region coordinates are {x, y} in order: UL, LL, LR, UR
		select region {{0, 0}, {0, theHeight}, {theWidth, theHeight}, {theWidth, 0}}
	end tell
	set settings's ruler units to inch units
end tell