2 Replies Latest reply on Apr 26, 2012 4:11 PM by Maria964

    Release Anchored Objects

    Maria964 Level 1

      Hi,

      Does anyone knows about a scrip able to release all the anchored objects in a InDesign 5.5 document?

       

      Thank you in advance

       

      Maria

        • 1. Re: Release Anchored Objects
          csm_phil Level 4

          Hi Maria,

           

          Please use the below JS code, But the code is your requirement has been solved, i feel this way is big round circle. So any one make short your requirement after my script to edit or modify.

           

           

          var myDoc = app.activeDocument;
          var myPGItem = myDoc.allPageItems;
          for(j=0; j<myPGItem.length; j++){
              var myAncObj = myPGItem[j];
              if(myAncObj.parent.constructor.name=="Character"){
                  if(myAncObj.constructor.name =="TextFrame" || myAncObj.constructor.name =="Rectangle" || myAncObj.constructor.name =="Group"){
                      myAncObj.anchoredObjectSettings.releaseAnchoredObject();
                      }
                  }
              }
          

           

           

          thx

          csm_phil

          • 2. Re: Release Anchored Objects
            Maria964 Level 1

            Thank you csm_phil. Tomorrow I will try your code.

             

            Maria