Skip to main content
Participating Frequently
December 19, 2025
Answered

JavaScript InDesign dialog window .orientation deprecated

  • December 19, 2025
  • 1 reply
  • 189 views

Hello,

 

I am currently going through Peter Kahrel's "ScriptUI for Dummies" book, and there is a piece of code to make a dialog window with user input that I tried out:

var myWindow = new Window ("dialog", "Window title");
    myWindow.orientation = "row";
    myWindow.add ("statictext", undefined, "Prompt:");
    var myText = myWindow.add ("edittext");
myWindow.show ();

This works, but .orientation is striked through, which as I understand means this feature will not be supported anymore in the future. What should I be using instead?

 

Thanks,

Heidi

Correct answer Manan Joshi

Striked in as in? Where is it striked? If you are talking about in VSCode then this is because ScriptUI is using an old version of ECMA script, which VSCode may be evaluating against the latest standard. ScriptUI has not been updated since long and I don't think it will be except some very hyped up bugs

-Manan

1 reply

Manan JoshiCommunity ExpertCorrect answer
Community Expert
December 19, 2025

Striked in as in? Where is it striked? If you are talking about in VSCode then this is because ScriptUI is using an old version of ECMA script, which VSCode may be evaluating against the latest standard. ScriptUI has not been updated since long and I don't think it will be except some very hyped up bugs

-Manan

-Manan
Participating Frequently
December 19, 2025

Indeed I meant in VSCode, sorry I forgot to mention. Alright that is good to know, thank you!