I am surprised I cannot resize an image so that I can receive a new DPI value, based on a predefined width or height.
tell application "Adobe Photoshop CS4"
set thisdoc to document 1
tell thisdoc
resize image height 108 resample method none
end tell
end tell
--returns
-->>"Adobe Photoshop CS4 got an error: You may use pixels to specify 'height' and 'width' only when resampling"
Is there any way to have Photoshop recalculate the dpi based on a new (height, or width) of the document without using a resample method? And btw, my units are set to pixels.