Recoloring .eps files


I've got 280 .eps files with QR-codes that I data merge into InDesign. However, I need to change the black color into the company color. I can't find a way of doing this in InDesign directly, so I'm trying with Illustrator instead.

Sadly, I can't seem to create an action which does this for me. The files do not contain the required swatch, and I cannot get swatch loading to be recorded when I create an action, so when I try applying the color, I get an error "cannot find swatch".

What are my options? I don't really care how it's done, I just need to replace the black color with a specified Pantone.

9/30/2011 8:06:00 AM

Accepted Answer

This is not possible as far as I know, since the book color isn't assignable without first being in the swatches palette. And sadly, Recolor > Recolor with Preset… > 1 color job isn't recordable either … for some obscure reason.

I'm not sure if this fits your bill, but one approach is to convert the PANTONE color to CMYK or ditto, which is farily easy (ask if you don't know how). Then, record a macro where you assign this CMYK color to the artwork.

I made a test using a sample QR-code .EPS file and it's set up to use a square background path (lowest position in the Layers menu). So, maybe first recording hiding or deleting this, so as not to recolor the whole image in one color.

Then, assuming your EPS'es are laid out the same way as mine, record selecting the topmost layer, then Select > Same > Fill color, and finally record assigning that selection with the brand (CMYK) color.

Here's the EPS sample I tried:

9/30/2011 12:37:00 PM

Maybe a bit late, but I think somebody can use this information for his/her advantage:

Basically eps is just a text file, so it's enough to find "part of text" defining the color and replace it with another. Repeating this for any number of files requires a trivial script or some good text editor with batch search & replace capabilities. Only thing required would be to check file itself and eps/ps specification how to do that.