I’m attempting to make a script where i have a simple 500 by 500 document filled with noise and i want to extend the area above the noise by 100 pixels (resize canvas) and then select that white area. It seems simple but can anyone tell me why this doesn’t work?
tell application "Adobe Photoshop CS"
activate
set w to width of current document
set h to height of current document
set e to (h * 0.2)
resize canvas current document height (h + e) anchor position bottom center
select current document region {{0,0},{w,0},{w,e},{0,e}}
end tell
When I run the script noting happens not even an error. Any advice would be much appreciated. Thanks.