Copy link to clipboard
Copied
Has anybody ever had to do this?
Copy link to clipboard
Copied
Have all the colors been added to the swatch panel with the Add Used Colors command from the panel flyout?
Copy link to clipboard
Copied
Yes.
Copy link to clipboard
Copied
This is what I've got so far:
tell application "Adobe Illustrator"
activate
set thisDoc to current document
set sel to (first path item of thisDoc)
set theItem to sel
set theSpot to theItem's fill color as list
set theFill to {}
set theFill to theSpot as text
display dialog theFill as text
end tell
It throws back the error:
error "Can’t make {«class tCSi», 28.000003099442, «class caCC» 3 of document 1 of application \"Adobe Illustrator\"} into type text." number -1700 from {«class tCSi», 28.000003099442, «class caCC» 3 of document 1} to text
Any help would be HUGE!
Copy link to clipboard
Copied
Have you tried the RenderSwatchLegend script on:
Here is a description of the script:
This script will generate a legend of rectangles for every swatch in the main swatches palette.
You can configure spacing and value display by configuring the variables at the top
of the script.
update: v1.1 now tests color brightness and renders a white label if the color is dark.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now