Thread View: adobe.scripting.indesign
4 messages
4 total messages
Started by Kamrun
Fri, 20 Feb 2009 20:46
From a Modal Dialog, Run a Script
Author: Kamrun
Date: Fri, 20 Feb 2009 20:46
Date: Fri, 20 Feb 2009 20:46
18 lines
1174 bytes
1174 bytes
Hello everyone, not sure here is right forum to post my question but anyway there is an issue I have here: I'm trying to call: Utils<IExtendScriptUtils>()->RunScriptInEngine() from a modal dialog in my plugin in C++ code, i get error says: Error Number: 30486 Error String: Cannot handle the request because a modal dialog or alert is active. I added this: app.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract; didn't help.... How can solve this problem, trying to somehow close dialog before executing this, any thoughts/ideas? Regards Kamran
Re: From a Modal Dialog, Run a Script
Author: Kamrun
Date: Fri, 20 Feb 2009 21:39
Date: Fri, 20 Feb 2009 21:39
3 lines
775 bytes
775 bytes
Just a quick update, I changed dialog type from IDialog::kModal to IDialog::kModeless it solved the issue, but I want the dialog be a modal, does someone has idea for modal dialog. Thanks, Kamran
Re: From a Modal Dialog, Run a Script
Author: Harbs
Date: Mon, 23 Feb 2009 14:17
Date: Mon, 23 Feb 2009 14:17
8 lines
895 bytes
895 bytes
Scripts are limited by modal dialogs the same way the UI is. A workaround might be closing your dialog, running the script and reopening it... -- Harbs http://www.in-tools.com
Re: From a Modal Dialog, Run a Script
Author: Kamrun
Date: Mon, 23 Feb 2009 20:50
Date: Mon, 23 Feb 2009 20:50
6 lines
879 bytes
879 bytes
Hi Harbs, Can you explain a bit more, assume I'm in in dialogController::ApplyDialogFields() I got collected what I wanted from this dialog, now I want to close it and execute my code, how do you do that? Thanks again, Kamran
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads