Script to Apply Blending Mode to New Layer
I'm looking to make a basic script that creates a new layer and sets the blending mode of that layer to "Darken." I've tried using Applescript and get an error stating "Can’t make some data into the expected type." I believe this is because it's expecting to apply the blend mode to an object instead of the layer itself. Is this possible either in Applescript or Javascript? Below is the code I attempted using Applescript
tell application "Adobe Illustrator"
set layerRef to make layer at document 1 with properties {name:"Spot White", blend mode:"darken"}
end tell