you are correct. I dont. The problem I had with the other post is that it was only searching page items and then not listing spot colors that were used in the placed eps files.
it was only searching page items and then not listing spot colors that were used in the placed eps files.
There’s no way to check an EPS’s spot colors from within InDesign, so if you want to include spot colors that are brought in via a placed asset, there’s no point in looping thru the page items and text. The only choice would be to simply output the used swatch list—the code without the page item and text loop:
tell application id "com.adobe.indesign"
tell active document
delete unused swatches
set allSwatches to every swatch
try
set noprint to make color with properties {model:spot, space:CMYK, color value:{100, 0, 0, 0}, name:"noprint"}
on error
set noprint to every color whose name is "noprint"
end try
try
wb to make color with properties {model:spot, space:CMYK, color value:{0, 0, 0, 100}, name:"wb"}
on error
set wb to every color whose name is "wb"
end try
try
set infoLayer to make layer with properties {name:"Job Info - Non-Print", printable:true, layer color:blue}
on error
set infoLayer to every layer whose name is "Job Info - Non-Print"
end try
set ul to "Used Swatches:" & return
set ds to {"None", "Registration", "Paper", "Black"}
delete every page item of item 1 of infoLayer
repeat with x in allSwatches
if name of x is not in ds then
set ul to ul & name of x & return
end if
end repeat
set slugText to make new text frame with properties {geometric bounds:{(item 4 of page 1's bounds), 0.25, ((item 3 of page 1's bounds) + -1), 3}, stroke color:"noprint", stroke weight:1, item layer:"Job Info - Non-Print"}
set contents of slugText to ul
set fill color of text 1 of slugText to "noprint"
end tell
end tell
But as I mentioned in the other post just because a swatch is used doesn’t mean it will print. Here PANTONE Stron Red C is in a placed EPS, but G, Gray20, Gray60 are listed but they will not print:
