Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Hi,
Broken on Intel Mac.
P.
Edited: This is very dissapointing. There are thousands of scripts that are being allowed to fade away.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
I confirm. ID 2024, Windows 11
Copy link to clipboard
Copied
MacBook Pro M1
MacOS 14.0 Sonoma
InDesign 19.0
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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.