2 Replies Latest reply on Sep 29, 2014 11:27 AM by Trevorׅ

    Need to increase the width/fit of window created by script to fit given text...

    virender_CTS Level 1

      #target indesign

      var myDoc = app.activeDocument;

       

      var w = new Window ("dialog", "Dear User <line break> Select the one option"); // need line break also, i tired with \r.


      var myButton1 = w.add("button", undefined, "fullName");

      var myButton2 = w.add("button", undefined, "Name");

      var myButton3 = w.add("button", undefined, "Cancel");

       

      myButton1.onClick =  function ()


      {

          alert(myDoc.fullName);

          w.close ()

          }

       

       

      myButton2.onClick =  function ()

       

      {

          alert(myDoc.name);

          w.close ()

          }

       

      w.show();