4 Replies Latest reply on Jan 30, 2017 12:18 AM by erwine7220

    get the value of a text variable


      //  In my active Indesign document, there is a Text variable named myRevisionNR, type: modified text, which can be: "00", or "01" or "02", etc.


      //  How can I display the "value" of my tex variable myRevisionNR?



      //  Create text variable

      var myDocVariables = app.activeDocument.textVariables;



      var myDocVariablesNames = myDocVariables.everyItem(0).name;



      //  The following sentence only displays: "myRevisionNR". But I want to see: "01", or "02"



      //  Who can help me?