Skip to main content
January 18, 2010
Question

Indesign CS4: modal state unavailable (applescript)

  • January 18, 2010
  • 1 reply
  • 778 views

Hi,

I have written an application in which I try to catch modal dialogs with this construct:

<code>

...

if modal state is true then

     set meinInDesignStatus to "modal"

end if
...

if meinInDesignStatus is "modal" then

     display alert("Please close the modal window in InDesign before continuing!")

end if

</code>

In the former version (for CS2) this code worked fine. But since I am trying to use this script with CS4 my alert is not displayed anymore. Inside the "ADOBE INDESIGN CS4 SCRIPTING GUIDE: APPLESCRIPT" I was not able to find anything like this construction.

Do you know any way to get this running again?

Thank you in advance.

Bests

Rolandd

This topic has been closed for replies.

1 reply

Harbs.
Legend
January 18, 2010

Were you using a third party plugin?

Harbs

January 18, 2010

Yes, but the modal message, which was not caught, was from indesign itself, asking for fonts which were not on the system.

Roland

Harbs.
Legend
January 18, 2010

The modal state property is still there.

The following js works in CS4...

if(app.modalState){

//bail out

}