Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 88739

Re: How to read framemaker console output using script.

$
0
0

You can open the console file like any other textfile:

 

 

var aConsLines = [];
var sLine;
var path = app.UserSettingsDir;
var ConsFileName = path + "\\" + "consfile.txt";

var oConsFile = new File(ConsFileName);  

oConsFile.open('r');
// option 1
var sFileContent = oConsFile.read();

// option 2
/*
    //   or you put it in an array
 while(!oConsFile.eof)            {            sLine = oConsFile.readln();            aConsLines.push(sLine);            }
*/

oConsFile.close();



Viewing all articles
Browse latest Browse all 88739

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>