Hello everybody,
I’m french, sorry for my english…
My question is how to move a selection inside a photoshop document with applescript without using copy and paste .
With Adobe Photoshop CS, when we select some pixels, it is possible to move the selection while using the apple key and the mouse or the arrow.
With applescript, I can select what I want, I can copy it and paste it where I want, but this create a new layer. I would like to just move the selection without creating new layer.
Here is a part of my script :
on function()
tell application “Adobe Photoshop CS”
activate
select current document region {{10, 0}, {11, 0}, {11, 50}, {10, 50}}
copy
select current document region {{20, 0}, {21, 0}, {21, 50}, {20, 50}}
paste
flatten current document
end tell
return
end function
Does somebody have an idea?
Regards
stereoxfr