I'm very new to illustrator and I have not done scripting before, I have like a hundred illustrator files that I need to change the background color lets say background color is layer 5 for every file, can scripting make it like repeat changing the background color for all my files, i would really appreciate some help with how to start writing a script.
Example below:
script below:
var doc = app.activeDocument;
var layers = doc.layers;
var colortest = new RGBColor();
colortest.red = 251;
colortest.green = 237;
colortest.blue = 31;
layers[4].color = colortest;
i havent done any scripting before, and ive just been researching for a while and its really confusing me. i tried the script above based on my researches but its wrong.instead of changing the blue color of the layer it changes that yellow color thing
Script result: