Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

I need to create a report that lists all color builds used in an Illy document.

Guest
Oct 02, 2014 Oct 02, 2014

Has anybody ever had to do this?

TOPICS
Scripting
610
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Community Expert ,
Oct 02, 2014 Oct 02, 2014

Have all the colors been added to the swatch panel with the Add Used Colors command from the panel flyout?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 03, 2014 Oct 03, 2014

Yes.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Oct 03, 2014 Oct 03, 2014

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!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Oct 07, 2014 Oct 07, 2014
LATEST

Have you tried the RenderSwatchLegend script on:

wundes.com

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines