Change Registration Text to Black in Indesign

brent

Well-known member
We received a 500+ page file from a client. They set all the text as registration. Ugh. Is there a way to globally change the registration Colored text to just black?
 

mwc

Well-known member
Simply use the find/change function and define the colors in the Format box.

Screen Shot 2017-01-11 at 9.36.44 AM.png.jpg
 

brent

Well-known member
LOL....Thats what I figured, but I can't find it anywhere in the find and replace palette. Ugh. Feel silly.
 

Stephen Marsh

Well-known member
Another option is to use a very simply script.

ALL text will be made black, so watch out for exceptions that are coloured (save the text as a .jsx file, ensure quotes are straight and not curly).

Code:
function makeAllTextBlack() {
        var doc, blackColor;
        if( !app.documents.length ){ return; }

        doc = app.activeDocument;
        blackColor = doc.colors.itemByName ( "Black" );
        if ( !blackColor.isValid )
        {
            blackColor = doc.colors.add( {colorSpace:ColorSpace.CMYK, model:ColorModel.PROCESS, colorValue:[0,0,0,100], name:"Black"} );
        }
        try
        {
            doc.stories.everyItem().fillColor = blackColor;
            alert("done");
        }
        catch(e)
        {
            alert(e+" "+e.line);
        }
    }

    makeAllTextBlack();
 

Stephen Marsh

Well-known member
This javascript will only change registration colour to black:

Code:
// Convert registration color to black
// https://forums.adobe.com/thread/1990206
var doc = app.activeDocument;
app.findObjectPreferences = app.changeObjectPreferences = null;
app.findObjectPreferences.fillColor = "Registration"; 
app.changeObjectPreferences.fillColor = "Black"; 
app.changeObject();
app.findObjectPreferences = app.changeObjectPreferences = null;
app.findObjectPreferences = NothingEnum.nothing;
app.changeObjectPreferences = NothingEnum.nothing; 
app.findObjectPreferences = app.changeObjectPreferences = null;
app.findObjectPreferences.strokeColor = "Registration"; 
app.changeObjectPreferences.strokeColor = "Black"; 
app.changeObject();
app.findObjectPreferences = app.changeObjectPreferences = null;
app.findObjectPreferences = NothingEnum.nothing;
app.changeObjectPreferences = NothingEnum.nothing; 
app.findTextPreferences = app.changeTextPreferences = null;
app.findTextPreferences.fillColor = "Registration"; 
app.changeTextPreferences.fillColor = "Black"; 
app.changeText();
app.findTextPreferences = app.changeTextPreferences = null;
app.findTextPreferences = NothingEnum.nothing;
app.changeTextPreferences = NothingEnum.nothing; 
app.findTextPreferences = app.changeTextPreferences = null;
app.findTextPreferences.strokeColor = "Registration"; 
app.changeTextPreferences.strokeColor = "Black"; 
app.changeText();
app.findTextPreferences = app.changeTextPreferences = null;
 

Print In the Eye of the Buyer

Canon White Paper
FIVE PART SERIES:
FREE DOWNLOADS

Print In the
Eye of the Buyer

Download Free White
Papers Here

   
Top