Skip to main content
ajabon grinsmith
Community Expert
Community Expert
July 1, 2025
Answered

How to fix the appearance of ScriptUI regardless of host application

  • July 1, 2025
  • 1 reply
  • 143 views

Hi there,  
I'm currently putting together a little in-depth ScriptUI for beginning scripting students.
I find UXP and CEP very difficult for them. jsx is the easiest to understand.

I have tested a 3x3 tiled arrangement of icon buttons on a dialog with code like this.

var dlg = "dialog{text:'" + app.name.replace(/^Adobe /, "") + "', orientation:'column', spacing:0, margins:[4,4,4,4], ";
for(var i = 0; i < 3; i++){
    dlg += "G" + i + ":Group{orientation:'row', spacing:0, ";
    for(var j = 0; j < 3; j++){
        dlg += "B" + j + ":IconButton{size:[15,15], icon:'~/desktop/icon.png'},";
    }
    dlg += "}";
}
dlg += "}";

var win = new Window(dlg);
win.show();


Currently, the appearance transforms in various ways depending on the host application.
Perhaps AfterEffects and Premiere will have their own unique results.
2025

  

and 2023

  

Is there any way to unify the appearance on all applications?

My preferred result is InDesign 2023.

 

Best regards.

    Correct answer Ten A

    ScriptUIはアプリケーション毎に実装がまちまちなんでど〜しようもないです。

    全部のオブジェクトをabsoluteな位置管理にすればいけるんじゃなでしょうか。

    1 reply

    Ten A
    Community Expert
    Ten ACommunity ExpertCorrect answer
    Community Expert
    August 8, 2025

    ScriptUIはアプリケーション毎に実装がまちまちなんでど〜しようもないです。

    全部のオブジェクトをabsoluteな位置管理にすればいけるんじゃなでしょうか。

    ajabon grinsmith
    Community Expert
    Community Expert
    August 14, 2025

    ありがとございます。

    時間ができたら手を入れてみますっ