1 Reply Latest reply on Jun 6, 2013 1:49 AM by Jump_Over

    Find and Move

    hurix@123 Level 1

      Hi,

       

      My Script is:

       

      app.findTextPreferences.appliedParagraphStyle = "Sidebar Text";

      myFind = myDocument.findText(true);

      for(i=0; i<myFind.length; i++)

      {

          myLib = app.libraries.everyItem();

      myAnchorFrames = myLib.assets.item("Box").placeAsset(myFind[i].insertionPoints[-1])[0];

      //    myAnchorFrame = myLib.assets.item("Box").placeAsset(myFind[i].insertionPoints[0])[0];

       

       

       

        myFind[i].move(LocationOptions.after, myAnchorFrames.textFrames[0].insertionPoints[0]);   

      Error: Undefined is not an Object.

       

      can any one Help