3 Replies Latest reply on Jul 6, 2015 7:04 AM by Qwertyfly...

    Please would someone tell me how to centre justify text boxes in a window created in Javascript for Illustrator.  Expect this has to be done when creating the Object(s), but I'm new to scripting and don't know the syntax.


      function getCutterID(){

      var CWindow = new Window ("dialog", "Layout ID");

      var CInputGroup = CWindow.add ("group");

      var CText = CInputGroup.add ("edittext", undefined, "");

      CText.characters = 7;

      CText.active = true;

      var CButtonGroup = CWindow.add ("group");

      CButtonGroup.alignment = "right"; CButtonGroup.add ("button", undefined, "OK"); CButtonGroup.add ("button", undefined, "Cancel");

      CButtonGroup.active = true  

      CWindow.show ();


      return CText.text

      CWindow.close ();