Spot color not found
Could you detect a problem here? The document swatches pallete contains spot color named PANTONE 1945 C, newetherless I get the error here. Spots listing prints the same name as in the spotName. What did I miss?
alert(spotName); //PANTONE 1945 C
try {
doc.spots.getByName(spotName);
} catch (e) {
alert('Spot not found');
$.writeln("---------");
var spots = doc.spots;
for (var i = 0; i < spots.length; i++) {
$.writeln(spots[i].name); //PANTONE 1945 C
}
$.writeln("---------");
return;
}
The above situation occurs when a color has been added from the pantone library to the swatch palette. If I create a spot color through "New Swatch" with the name "PANTONE 1945 C" then the error will go away, any thoughts?
p.s. What is the reason that the code highlighting is present in the edit window, but is not shown when published in this post?
