Skip to main content
Marc Autret
Legend
November 8, 2023
질문

ScriptUIGraphics' foregroundColor no longer available to StaticText (?)

  • November 8, 2023
  • 5 답변들
  • 799 조회

Hi,

 

Up to InDesign 18.5, we could still apply a foreground color to a StaticText widget. Given the destruction that ScriptUI has suffered over the years, this was one of the last graphics features that we could still hope to see honored. But with InDesign 19.0, it seems that this last vestige of the ScriptUIGraphics API has also disappeared:

 

// JSX SAMPLE SCRIPT
// Test ScriptUIGraphics.foregroundColor on StaticText
(function(  win,st,gx)
{
   win = new Window('dialog','test');
   st = win.add('statictext', void 0, "Hello World");
   win.add('button', void 0, "OK");
   
   // Assign a foreground color to the StaticText widget.
   // ---
   gx = st.graphics;
   gx.foregroundColor = gx.newPen(gx.PenType.SOLID_COLOR, [.3,.6,.9,1], 1);

   win.show();
})();

 

Result in ID 2023 (18.5) / Win10:

 

Result in ID 2024 (19.0) / Win10:

 

I'm not 100% sure this bug is cross-platform and cross-app. If you can confirm this to me — by testing in your environment — thank you in advance.

 

Best,

Marc

이 주제는 답변이 닫혔습니다.

5 답변

Sergey Osokin
Inspiring
November 9, 2023

I don't have a newer version of InDesign installed, but I can say that in Adobe Illustrator CC 2024, color statictext in ScriptUI still works. So independent and uncoordinated are the teams for different products within the same company.

TᴀW
Legend
November 8, 2023

It works on Windows 11 with ID 2023 (English with Hebrew support),

but not in ID 2024 (English with Hebrew support).

Probably worth reporting this as a bug, though. I don't think they did it on purpose, and they have fixed one or two ScriptUI issues in the past.

Inspiring
November 8, 2023

MacBook Pro M1

MacOS 14.0 Sonoma

InDesign 19.0

m1b
Community Expert
Community Expert
November 8, 2023

Hi @Marc Autret, I can confirm on ID 19.0.1 MacOS 14.1:

 

Yes, a slow erosion of ScriptUI.

- Mark

Participating Frequently
November 8, 2023

I confirm. ID 2024, Windows 11

Legend
November 8, 2023

Hi,

 

Broken on Intel Mac.

 

P.

Edited: This is very dissapointing. There are thousands of scripts that are being allowed to fade away.