Quantcast
Channel: Adobe Community : Popular Discussions - Photoshop Scripting
Viewing all articles
Browse latest Browse all 12244

Moving a layer in Photoshop CS5 using Applescript

$
0
0

I have a layer in a document called "logo" and i want to duplicate it to every open document and then move it to a specific spot in each document

I got the duplicating thing happening but cant seem to move the bounds of the layer (says it is read only and cannot be changed)

 

here is what I have written

 

tellapplication "Adobe Photoshop CS5"

activate

 

settheDocstocountofdocuments

repeatwithifrom 1 totheDocs

 

duplicateart layer "logo" ofcurrent documenttodocumenti

 

endrepeat

 

 

repeatwithifrom 1 totheDocs

setcurrent documenttodocumenti

telldocumenti

setboundsofart layer "logo" to {0.456666666667, 6.38, 2.88, 6.77}

--Adobe Photoshop CS5 got an error: Property is read/only and cannot be changed

endtell

 

endrepeat

 

 

endtell

This doesn't error but also doesn't move the logo at all

tellapplication "Adobe Photoshop CS5"

activate

settheDocstocountofdocuments

repeatwithifrom 1 totheDocs

duplicateart layer "logo" ofcurrent documenttodocumenti

endrepeat

 

 

repeatwithifrom 1 totheDocs

setcurrent documenttodocumenti

telldocumenti

setpropertiesofart layer "logo" to {bounds:{0.456666666667, 6.38, 2.88, 6.77}}

endtell

 

endrepeat

endtell


anyone know what the language is to move the layer around?

Viewing all articles
Browse latest Browse all 12244

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>