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

fillColor in CS3

New Here ,
Mar 13, 2008 Mar 13, 2008
Hi,

The below line works well in InDesign CS2 to apply fill color :
......words[0].fillColor=app.activeDocument.swatches.item("cyan");

But the same line doesn't work in InDesign CS3. What has suppose changed in "fillColor" syntax.

Please guide me.
Saravanan .K
TOPICS
Scripting
514
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
Valorous Hero ,
Mar 13, 2008 Mar 13, 2008
......words[0].fillColor = app.activeDocument.colors.item("Cyan");
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
New Here ,
May 23, 2008 May 23, 2008
Hi,

But this syntax also throws the same error.
Could you please teach me..?

Thanks,
Saravanan.k
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
Contributor ,
May 23, 2008 May 23, 2008
LATEST
Hi,

> .....words[0].fillColor = app.activeDocument.colors.item("Cyan");

Your code works fine for me.

Did you check the name of the colors of the active document, yet?

$.writeln( app.activeDocument.colors.everyItem().name.join('\r') );

or

alert( app.activeDocument.colors.everyItem().name.join('\r') );


Martin
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