9 Replies Latest reply on Oct 30, 2015 11:27 PM by Colin Flashman

    Data Merge - get max records

    paintasmile Level 1

      Hey Guys,


      i currently write a script (js) to automate some workflows in Indesign at work.


      Sounds really dumb but try for at least 3 hours to get the number of records to merge.


      i found that line of code:


      var maxRange =  currDoc.dataMergeProperties.dataMergePreferences.recordRange.split('-')[1];

      Create hyperlinks with script, without big increases to size and processing reqs of resulting PDFs?


      but it doesent work, it just returns (of course) the last range i used when exporting to a PDF.


      Can some smart individual help me?