Photoshop move question

I am putting together a script in Photoshop where I need to move a layer to the left or right by a certain amount of pixels. I have gone through the entire dictionary and scripting reference and don’t seem to find any command or way of moving a layer. I tried changing the bounds of the layer but this is “read only” and there is no scripting method, that I could find, for doing a transform and moving it that way. And the “move” tool only changes the location of the layer in the layer pallette–not the x and y location of it in the image.

Any suggestions?

You need to use the translate command, move is used for other purposes. This may not seem logical to the average user but there is a lot to do in PS and the engineers need some way to differentiate the myriad number of commands.

tell application "Adobe Photoshop CS2"
	translate layer "Test" of current document delta x 10 delta y 20
end tell

Thanks. That worked. Didn’t think to look for translate!:rolleyes: