Question
Applying a Graphic Style via a Script
I used your bit of script and its worked really well!
//Apply Outline to selected shape
for (var i = 0; i < sel.length; i++) {
var gStyle = doc.graphicStyles.getByName("Outline");
gStyle.applyTo(doc.selection[i]);
}
I've noticed one thing that I can't explain.
The graphic style is set to "Align Stroke to Outside" but occasionally it sets the graphic style to "Align Stroke to Center" is there something I can change with my code to ensure it always applies as "Align Stroke to Outside"?
Thank you!
