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();
// 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;
A 30-day Fix for Managed Chaos
As any print professional knows, printing can be managed chaos. Software that solves multiple problems and provides measurable and monetizable value has a direct impact on the bottom-line. “We reduced order entry costs by about 40%.” Significant savings in a shop that turns about 500 jobs a month. Learn how……. |