How to identify clipping masks in Photoshop using JavaScript
问题 I've currently butchered a script I was reading that loops through a list of layers, and then looks for layers with a certain name (3/2, 4/3 etc). The next step is to check for layer masks that are clipped to the base layer, and merge them to it. I've read through the reference docs, and can't find anything about identifying clipping masks. I've attached an image as an example of how the document is structured. And here is the code I have so far: var doc = app.activeDocument var ratios = ["1