Skip to main content
Participating Frequently
August 14, 2009
Question

Applescript: Applying spot colors to existing paths...

  • August 14, 2009
  • 1 reply
  • 1046 views

OK, this is clearly a noob question, but i can't figure out the syntax... i want to apply particular spot colors to pre-existing compound paths... sounds simple enough, then why can't i find a post on this subject?.. here's a quick sample script...

tell application "Adobe Illustrator"
    make new document
    make new rectangle in document 1 with properties {bounds:{20, 20, 100, 100}}
    set the fill color of the result to {class:spot color info, tint:100, spot:"Spot4"}
end tell

I'm using CS3 if that makes a difference... thanks in advance for your help...

This topic has been closed for replies.

1 reply

Participating Frequently
August 14, 2009

ok, found a post from nine months ago addressing a similar problem that i found my answer within... in case any other newbies are interested...

here's the new line...

set the fill color of the result to {class:spot color info, tint:100, spot:spot "Spot4" of document 1}

thanks to the few people who looked at this post...