Finding colors in InDesign
Finding colors in InDesign
- Subject: Finding colors in InDesign
- From: email@hidden
- Date: Mon, 23 Apr 2007 07:58:10 -0500
- Priority: normal
Is there a way to just pull out the colors that are actually being used
in an InDesign CS2 document? I was thinking that if I grab all the
colors in the document and then compare that to a list of the unused
swatches that might work. But it doesn't as seen in the code below.
The document only contains Cyan, Magenta, Yellow, Black, TestRed,
TestGreen and TestBlue. I'd still end up with Paper, Registration and
White which is not what I want. And what's up with all the empty
strings in these lists?
tell application "Adobe InDesign CS2"
tell document 1
set a to colors's name
set b to unused swatches's name
return {a, b}
end tell
end tell
--> {{"Black", "Cyan", "TestRed", "TestGreen", "TestBlue", "Magenta",
"Paper", "Registration", "TestPMS123", "White", "Yellow", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", ""}, {"TestPMS123", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", ""}}
However, I have found that if I package the file that I ca
n look thru the 'report file' and get the correct colors. But is there
a better way to get these colors I need besides having to save out a
folder and read thru it's text file?
Thanks.
Jay
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden