-
1. Re: JS: app.modalState?
TᴀW Jul 3, 2013 3:29 AM (in response to Peter Kahrel)Well, as an idea, perhaps it's worth experimenting with running the
script from a different script engine -- put InDesign into a modal
state, and then run another script that can kind of ping InDesign --
perhaps run another script with a #target ESToolkit and see if you can
get InDesign to respond with a modalState == true with BridgeTalk?
Just an idea.
Ariel
-
2. Re: JS: app.modalState?
drerol74 Jul 3, 2013 6:57 AM (in response to TᴀW)Hello Peter,
in my experience, this only works with some InDesign own UI dialogs, such as »Print ...« or »Document Setup ...«
It doesn't works with »Save as ...« or »Place ...« and so on or Script UI.
Try this with File > Print ... and File > Save as ...
#target InDesign
alert ("Modal state: " + app.modalState);
if (app.modalState) {
alert("Yes");
}
The first works ...
Roland
-
3. Re: JS: app.modalState?
Peter Kahrel Jul 3, 2013 7:53 AM (in response to drerol74)Thanks, Ariel, Roland. So modalState works only with InDesign's dialogs, not with those that use the operatiing system (Open, Save, etc.). Thanks for pointing that out. BridgeTalk probably won't work either, but I'll look into it.
Peter
-
4. Re: JS: app.modalState?
Harbs. Jul 4, 2013 4:29 AM (in response to Peter Kahrel)This seems like a bug to me. Peter, are you logging it as such?
-