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

ScriptUIGraphics' foregroundColor no longer available to StaticText (?)

Guide ,
Nov 08, 2023 Nov 08, 2023

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:

MarcAutret_0-1699445453423.png

 

Result in ID 2024 (19.0) / Win10:

MarcAutret_1-1699445533699.png

 

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

TOPICS
Bug , Scripting

Views

342

Translate

Translate

Report

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
Guide ,
Nov 08, 2023 Nov 08, 2023

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.

Screenshot 2023-11-08 at 12.44.01.png

Votes

Translate

Translate

Report

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
Community Expert ,
Nov 08, 2023 Nov 08, 2023

Copy link to clipboard

Copied

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

Screenshot 2023-11-08 at 23.45.15.png

 

Yes, a slow erosion of ScriptUI.

- Mark

Votes

Translate

Translate

Report

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
Explorer ,
Nov 08, 2023 Nov 08, 2023

Copy link to clipboard

Copied

I confirm. ID 2024, Windows 11

hello.png

Votes

Translate

Translate

Report

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 ,
Nov 08, 2023 Nov 08, 2023

Copy link to clipboard

Copied

MacBook Pro M1

MacOS 14.0 Sonoma

InDesign 19.0

1.png2.png3.png4.png

Votes

Translate

Translate

Report

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
People's Champ ,
Nov 08, 2023 Nov 08, 2023

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.

Votes

Translate

Translate

Report

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
Enthusiast ,
Nov 09, 2023 Nov 09, 2023

Copy link to clipboard

Copied

LATEST

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.

Votes

Translate

Translate

Report

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