Copy link to clipboard
Copied
While running the script in indesign from extendscript, this error shows! "Error: Cannot handle the request because a modal dialog or alert is active." How to fix this error. I closed the dialog box and also no alert box is active while running the script.
Copy link to clipboard
Copied
Does it happen on some other machine as well with the same code? There are two possiblities
-Manan
Copy link to clipboard
Copied
Thank you @Manan Joshi for your suggestion and reply! I tried in another machine but not working for me. But I found a way to ignore that error!
I get this error when i try onClick events, So simply ignored onclick events and by closing the Ui Dialog window after receiving the inputs and then passing over to nextLine of script working fine! So I enabled cancel button alone to exit the script and ignored Ok button function. on very nextline I simply closed the window using "win.close()" function.
Copy link to clipboard
Copied
In JS:
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract
VBA will be similar.