Skip to main content
Inspiring
January 26, 2023
Question

Script Illustrator for to create a box with Registration Color

  • January 26, 2023
  • 2 replies
  • 954 views

Exist that possibility?

This topic has been closed for replies.

2 replies

Charu Rajput
Community Expert
Community Expert
January 26, 2023

Try following,

var _doc = app.activeDocument;
var _rect = _doc.pathItems.rectangle(0,0,100,100);
_rect.fillColor = _doc.swatches['[Registration]'].color;
Best regards
pixxxelschubser
Community Expert
Community Expert
January 26, 2023

Hi Charu,

nice to read you again.

Please read OP's other questions to understand my slightly ironic answer (although it actually answers the original question exactly).

😉

 

@Julio Ricardo 

Please note that the names of the swatches in scripts may differ depending on the language.

Charu Rajput
Community Expert
Community Expert
January 26, 2023

@pixxxelschubser 

I like the way you answers not only this one but others too 🙂

Simple and precise 🙂

Best regards
pixxxelschubser
Community Expert
Community Expert
January 26, 2023
quote

Exist that possibility?


By @Julio Ricardo

 

Yes. Indeed.
😉