Hi,
What about this script:
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
var main = function(){
var doc, pis, n, tf, warnLayer, clr, cp, errors = 0;
if ( !app.properties.activeDocument ) {
return;
}
doc = app.activeDocument;
pis = doc.allPageItems;
n = pis.length;
if ( n ) {
warnLayer = doc.layers.item(“WARN”);
warnLayer.isValid && warnLayer.remove();
warnLayer = doc.layers.add({name:”WARN”});
warnLayer.move(LocationOptions.AT_BEGINNING);
clr = doc.colors.item(“WARN”);
clr.isValid && clr.remove();
clr = doc.colors.add({
space:ColorSpace.CMYK,
model:ColorModel.SPOT,
colorValue:[0,100,100,0],
name:”WARN”
})
}
while ( n– ) {
tf = pis[n];
if (
(tf instanceof TextFrame)
&&
!tf.parentPage
&&
(tf.previousTextFrame!=NothingEnum.NOTHING
||
tf.nextTextFrame!=NothingEnum.NOTHING )
){
cp = tf.duplicate();
cp.itemLayer = warnLayer;
cp.fillColor = clr;
errors++;
}
}
alert(errors? errors+” errors found. Check with separations for WARN spot color” : “No errors found” );
};
var u;
app.doScript(“main();”,u,u,UndoModes.ENTIRE_SCRIPT);
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////