Batch scripting solution for illustrator?
- June 23, 2022
- 3 replies
- 4084 views
Hey there, I'm getting super frustrated as I'm desperetly looking for a solution to improve our workflow. We have a publication where a whole magazine must be layouted in a day (an investment newsletter) and it has many graphs. We receive the graphs in SVG format from DataStream (google services) and I need to make several changes in them.
1. changing the font, size and color of text
2. changing the stroke sizes, but there are 2 different strokes, one dashed and one normal
3. changing the color as there are RGB when we receive them and we print in Duo tone (cyan + black)
The strokes we receive are always the same attributes (ex stroke 1 is always 1pt large and color is always 51/51/51 etc...) So i figured I could just "Ask illustrator" to search for any stroke that has 51/51/51 for color and change it for a cmyk 0/0/0/100 and while I'm at it, change it from 1pt to 3,5pt.
It shouldn't be complicated, really, its the kind of search and replace query I know how to handle on indesign for example but I can't do at all in illustrator which is driving me nuts. I've tried actions, where I create an object with the same characteristics as what i'm gonna be looking for then use "select same" to find similar and items and apply the changes but it only allow me to select "same appearance" but it doesn't allow me to discriminate between the stroke with dash and the one without dash because they are the same color. I don't know illustrator as well as photoshop or indesing but it feels like illustrator actions are a lot more limited than photoshop ones for example.
Can anyone point me in the right direction? I feel like if illustrator had a find and replace OBJECTS like indesign has it would be done in no time: search x, y and z attribute and replace it by a, b and c. What am I missing here? I've been banging my head on a wall all week. Do i need to learn java script for this?
I've added a before and after file to show what I'm trying to do.
Thanks in advance.
