Skip to main content
andranika45761163
Known Participant
Sep 6, 2022 12:07 PM UTC
Answered

How to get FM console errors with ExtendScript.

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 is closed to new replies. Start a new post to keep the conversation going.
    Russ WardCorrect answer
    Legend
    Sep 7, 2022 12:01 PM UTC

    Hi andranika45761163,

     

    Try this:

     

    var consoleText = app.FMConsoleString;

     

    Hope that helps,

    Russ

     

    5 replies

    Russ WardCorrect answer
    Legend
    Sep 7, 2022 12:01 PM UTC

    Hi andranika45761163,

     

    Try this:

     

    var consoleText = app.FMConsoleString;

     

    Hope that helps,

    Russ

     

    Translate
    frameexpert
    Community Expert
    Community Expert
    Sep 6, 2022 6:11 PM UTC

    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.

    Translate
    www.frameexpert.com
    andranika45761163
    Known Participant
    Sep 7, 2022 5:08 AM UTC

    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" ?

    Translate
    K.Daube
    Community Expert
    Community Expert
    Sep 6, 2022 5:47 PM UTC

    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.

    Translate
    andranika45761163
    Known Participant
    Sep 7, 2022 5:07 AM UTC

    thanks for reply.

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

    Translate