5 Replies Latest reply on Jun 1, 2011 3:21 PM by Laubender

    [JS, CS5] Strange output in javascript console, from extractLabel

    Andreas Jansson Level 2

      I get a lot of empty CData in the javascript console, if I write out the result from extractLable('anynonexistinglabel').

       

      I use this code:

       

      var allPgItems = app.activeDocument.allPageItems;
      for (var i = 0; i <=allPgItems.length-1; i++){
          
          var currentItem = allPgItems[i];
          $.writeln(currentItem.extractLabel('asdfgh'))
          
      }
      

       

      The result:

      <![CDATA[
      ]]><![CDATA[
      ]]><![CDATA[
      ]]><![CDATA[
      ]]><![CDATA[
      ]]><![CDATA[
      ]]><![CDATA[
      ]]><![CDATA[
      ]]><![CDATA[
      ]]> etc

       

      Is this behaviour repeatable?

       

      Capture.JPG