1 Reply Latest reply on Aug 11, 2008 12:45 PM by Loic.Aigon

    Changing index entries

      Hi - I'm pretty new to scripting.

      I need to change the PageReferenceType from currentPage to suppressPageNumbers for all index entries in a document.

      I've got script templates that add entries, but not edit existing ones.

      any suggestions would be greatly appreciated.

        • 1. Re: Changing index entries
          Loic.Aigon Adobe Community Professional
          for(i=0; i<app.activeDocument.indexes.length; i++)<br />{<br />    app.activeDocument.indexes[i].topics[0].pageReferences.pageReferenceType = PageReferenceType.suppressPageNumbers;<br />}<br /><br />Certainly wrong 90% but maybe a basis for a reflexion ?<br />Loic<br /><br />If it helps, here is a script dealing with your topic<br />http://www.teusdejong.nl/indesign/Cleanindex.jsx