Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Accessing errors in Indesign

Community Beginner ,
Jun 15, 2011 Jun 15, 2011

How do I access the "errors panel" in Indesign (the one that shows missing fonts, overset text etc) using javascript?

TOPICS
Scripting
1.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 15, 2011 Jun 15, 2011

Do you mean Live Preflight?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Jun 16, 2011 Jun 16, 2011

Hi,

Can you please try this below line:

app.scriptPreferences.userInteractionLevel=UserInteractionLevels.interactWithAll;

thx

csm_phil

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 16, 2011 Jun 16, 2011

Hi,

I don't know if it is what you meant but you can inspire from this following example to manipulate preflight from JS :

try{
   
    // Basic
    var preflightProfile = app.preflightProfiles.firstItem();

    // Execution
    $.writeln("Execution <" + preflightProfile.name + ">");
    var preflightProcess = app.preflightProcesses.add(app.activeDocument, preflightProfile);
    var preflightReturn = preflightProcess.waitForProcess();
    preflightResults = preflightProcess.processResults;
    $.writeln("Return value <" + preflightReturn + ">");
    $.writeln("Return value <" + preflightResults + ">");

    // Results
    if (preflightResults != 'None'){
        $.writeln("Preflight : " + preflightProcess.aggregatedResults[2].length + " error(s) ");
        for (var i = 0 ; i < preflightProcess.aggregatedResults[2].length ; i++){
            var preflightError = preflightProcess.aggregatedResults[2] ;
            $.writeln("\n" + i + ".ERR   - " + preflightError[1] +
                              "\n" + i + ".PAGE - " + preflightError[2] +
                              "\n" + i + ".INFO - " + preflightError[3]
                              );
        }
   }

   // PDF
   preflightProcess.saveReport(File(yourDir + "/" + "preflight.pdf"), true);

   // Cleanup
   preflightProcess.remove();

} catch (ex) {
   // Exception
}

--

Manu

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 16, 2011 Jun 16, 2011

Thanks, Is it possible to get the actual text frame that was overset USING preflight?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jun 17, 2011 Jun 17, 2011
LATEST

Hi,

I do not know. The preflight gives the page with an error. Perhaps, just browse the textframes of the page to detect that which is in overflow.

--

Manu

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines