Skip navigation
Currently Being Moderated

A way to detect an indesign alert ?

Dec 20, 2011 1:55 AM

Hi all,

Is there a way to detect an alert like "missing fonts" or others at the open of a document ?

 

Thanks

Pierre RAFFA

 
Replies
  • Currently Being Moderated
    Dec 20, 2011 5:33 AM   in reply to Pierre-RAFFA

    Hi Pierre,

     

    This this below JS code.

     

     

    app.scriptPreferences.userInteractionLevel=UserInteractionLevels.NEVER_INTERACT; // this line will detect all the interaction like missing fonts missing links.
     
    app.scriptPreferences.userInteractionLevel=UserInteractionLevels.INTERACT_WITH_ALL; this will enable all the interaction dialog boxes.
    

     

     

    thx

    csm_phil

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 20, 2011 6:47 AM   in reply to csm_phil

    csm_phil, can you explain how this would notify the user an alert is waiting for a response?

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 21, 2011 11:47 PM   in reply to [Jongware]

    You can detect a modal dialog by script:

     

    tell application "Adobe InDesign CS4"

      if modal state then

                        say "Please close the modal [[emph +]] dialog." using "Whisper"

      end if

    end tell


     
    |
    Mark as:
  • Currently Being Moderated
    Dec 22, 2011 12:00 AM   in reply to Dirk Becker

    Or with JavaScript:

     

    if(app.modalState)
        alert("Modal dialog or alert active.");
    

     

    --

    Marijan (tomaxxi)

     
    |
    Mark as:
  • Currently Being Moderated
    Dec 22, 2011 12:02 AM   in reply to Dirk Becker

    I just convert this to JS.

     

    if ( app.modalState) {

        alert("Please close the model dialogs, then proceed");

        }

    else {

        alert("No model dialog");

        }

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points