Quantcast
Channel: Adobe Community : Unanswered Discussions - Photoshop
Viewing all articles
Browse latest Browse all 74445

Iterate over all document layers applescript

$
0
0

Hi,I have experience as programmer but not in applescript or photoshop scritpting,

Basically I want to apply some actions to layers, but only to those layers that are named ending in '-changeMe' e.g ( 'Layer 1-changeMe', 'Background-changeMe')

 

I'm trying to convert the pseudocode below to applescript

 

foreach layer in CurrentDocument.layers

   if layer.name contains '-changeMe'

       do something

   end if

end foreach

 

In the pseudocode above I'm inveting the notation, but I hoppe you get the idea.

it's posible?

Thanks!


Viewing all articles
Browse latest Browse all 74445

Trending Articles



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