6 Replies Latest reply on Nov 7, 2016 5:00 AM by Obi-wan Kenobi

    Can't change Measurement Unit

    Gregorio Pellegrino


      I'm developing a script. I would like to manage dimensions in millimeters; so I added at the top of the script:


      app.scriptPreferences.measurementUnit = MeasurementUnits.MILLIMETERS;


      But then I try to resize the page, and the dimensions are managed as points:


      app.activeWindow.activePage.resize(CoordinateSpaces.INNER_COORDINATES, AnchorPoint.CENTER_ANCHOR, ResizeMethods.REPLACING_CURRENT_DIMENSIONS_WITH, [240, 100]);


      Can you help me to understand where I'm wrong?