1 Reply Latest reply on Nov 3, 2016 3:31 AM by gert verrept

    export to rtf error

    gert verrept Level 2

      When running a script, I get an error after the script has been executed completely. It started in CC2017, so I suppose something could have been changed in the way objects are "made".error_BAT.jpg

      This is the a part of the script in which the error occurs


      function maak_rtf(rtf) {


        var document_nummer = lees_nummer();

        nummer = document_nummer[0].split("/");

        var RTF = File(folder_rtf + legis_prefix + nummer[0] + nummer[1]  + rtf + ".rtf");


              function log(msg) { 

        var f = new File ( Folder.desktop+"/log.txt" ); 


        f.writeln ( "["+$.line+"]"+msg ); 











        doc.selection[0].appliedFont = "Arial";



        tekst = doc.selection[0].texts[0];