Skip to main content
October 2, 2014
Question

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

  • October 2, 2014
  • 1 reply
  • 622 views

Has anybody ever had to do this?

This topic has been closed for replies.

1 reply

Larry G. Schneider
Community Expert
Community Expert
October 2, 2014

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

October 3, 2014

Yes.

October 3, 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!