1 Reply Latest reply on Mar 10, 2010 1:18 PM by [Jongware]

    [JS] Controling  X and Y position

    TestOCM

      Hey Guys,

       

      Another  question ....

       

      I'm trying to create text frame ...

       

      var myDocument = app.documents.item(0);

      myDocument.viewPreferences.horizontalMeasurementUnits = MeasurementUnits.points;

      myDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.points;

      var myPage = app.activeWindow.activePage;

      var myTextFrame = myPage.textFrames.add({geometricBounds:["860pt", "268pt", "169pt", "384pt"]});

      var myTextFrame2 = myPage.textFrames.add({geometricBounds:[45, 10, 300, 100]});

       

      I guess that this""860pt", "268pt", "169pt", "384pt" should control  X: Y: Position and W: H: and its not working ...

      Boxes are resizing but I can't get them to go where I need to ... its really strange ...

       

      Is there anything that I'm missing here  or something that I should know ?

       

      Thank You