4 Replies Latest reply on Feb 21, 2011 1:23 PM by Yuliaart

    Frame strock in Indd cs5 js

    Yuliaart Level 1

      I have a script that was working for a long time, but now it no longer remove stroke from new frame and I can't figure out why. Here is the code:

          var myFrame= myDoc.pages[0].rectangles[0];
          myFrame = myDoc.pages[0].rectangles.add(myDoc.layers.item ("Layer 1"));
          myFrame.strokeWeight = "0 pt";
          myFrame.geometricBounds = ["-.0625 in","-.0625 in", docOriginalHeight+.0625, docOriginalWidth+.0625];
          myFrame.fillColor = "None";
      

       

      Thank you very much for your help.

      Yulia