Take the 2-minute tour ×
Graphic Design Stack Exchange is a question and answer site for Graphic Design professionals, students, and enthusiasts. It's 100% free, no registration required.

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.

share|improve this question
    
What platform and version of Illustrator are you working with? It sounds like you will need to work with the scripting APIs to do what you want (Javascript, Applescript, depending on the platform). –  Philip Regan Sep 30 '11 at 8:50
    
I'm using CS4 on Windows 7, 32 bit. –  carlpett Sep 30 '11 at 8:52
add comment

2 Answers 2

up vote 2 down vote accepted

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: http://ge.tt/9tWPFJ8

share|improve this answer
    
@carlpett: It seems hced is correct here. I looked into the scripting APIs and Illustrator doesn't offer access to the Pantone libraries to add the Pantone colors to the swatch (and so forth). Time to put in the iPod and tuck in for some work. –  Philip Regan Sep 30 '11 at 15:41
    
is there no way of copying all colours used in a doc to swatches? –  e100 Oct 7 '11 at 15:57
add comment

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.

share|improve this answer
    
I also wonder if the OP had thought to manually create the swatch in the action, rather than loading it. If not, why not? –  horatio Dec 8 '11 at 18:43
    
@horatio: Hm, no I did not think of that. I'm not very good friends with Illustrator, so it probably didn't strike me that it could work. I'll try to remember it though, thanks! –  carlpett Dec 9 '11 at 10:06
    
@thebodzio: Yes, it's a bit late unfortunatly. But good thing to have recorded. –  carlpett Dec 9 '11 at 10:07
    
Sorry for being late, glad for being helpful :) –  thebodzio Dec 9 '11 at 10:33
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.