2 Replies Latest reply on Jan 7, 2013 12:32 AM by Harbs.

    How to get the Exact Measurement Values.

    csm_phil Level 4

      Hi Scripters,

       

      I want to get the exact values shown in the Control Panel. Please see the screenshots below.

       

      1.png

       

      I have written the JS code is here. But I want need the exact panel values in shown the above snapshots.

       

       var myImages = app.activeDocument.links;
      for(i = myImages.length-1; i >= 0 ; i--){
          var myImage = myImages[i];
          myImage.show();
          alert(String(myImage.parent.itemLink.parent.geometricBounds[3]-myImage.parent.itemLink.parent.geometricBounds[1]) + " × " + String(myImage.parent.itemLink.parent.geometricBounds[2]-myImage.parent.itemLink.parent.geometricBounds[0]));
          }
      

       

      thx,

      csm_phil