Question
Assign fill color to selection?
Simple, I'm sure, but I'm getting nowhere.
var aDoc = app.activeDocument;
var shape = aDoc.layers["FINGERPRINT"].pathItems[0];
shape.selected = true;
shape.fillColor = "BDBDFF";
app.executeMenuCommand("sendToBack");
"Object Expected" error on line 4. What am I doing wrong?
I'd like to set the color of the selection and send it to back. "SendToBack" works, but I must not understand how to use "fillColor".