Skip to main content
andranika45761163
Known Participant
September 6, 2022
Answered

How to get FM console errors with ExtendScript.

  • September 6, 2022
  • 3 replies
  • 516 views

Hi,

 

When I save FM to XML with extendscript, I see errors in the console which are not available in the AppData\Roaming\Adobe\FrameMaker\15\consfile.txt

 

Please find an example issue attached.

 

do you see a way to get this errors with extendscript ?

 

thanks.

    This topic has been closed for replies.
    Correct answer Russ Ward

    Hi andranika45761163,

     

    Try this:

     

    var consoleText = app.FMConsoleString;

     

    Hope that helps,

    Russ

     

    3 replies

    Russ WardCorrect answer
    Legend
    September 7, 2022

    Hi andranika45761163,

     

    Try this:

     

    var consoleText = app.FMConsoleString;

     

    Hope that helps,

    Russ

     

    frameexpert
    Community Expert
    Community Expert
    September 6, 2022

    I haven't figured that out yet. Some things get written to consfile.txt and some don't. This is an XML parser message. One thing you can try: open the temp folder in Windows explorer and try to grab a copy of the temporary file before FrameMaker deletes it. You can use this to figure out where the illegal character is.

    andranika45761163
    Known Participant
    September 7, 2022

    Can you please say where can I find this:

    "open the temp folder in Windows explorer and try to grab a copy of the temporary file" ?

    K.Daube
    Community Expert
    Community Expert
    September 6, 2022

    It seems that the XML you save to a file is not valid. 

    Try to copy the temp file to a file xyz.xml and then validate this with for example https://www.xmlvalidation.com/

    Most likely you will get similar error messages from the validator, but see where the error occurs.

    andranika45761163
    Known Participant
    September 7, 2022

    thanks for reply.

    is it possible to install this tool in windows 10 and does it have command line interface ?