🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1036

From a Modal Dialog, Run a Script

#1036
From: Kamrun
Date: Fri, 20 Feb 2009 20:46
18 lines
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
Technical Details
Message-ID: <59b7ffb0.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,d58a97f952526e66,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Kamrun@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: From a Modal Dialog, Run a Script
Message-ID: <59b7ffb0.-1@webcrossing.la2eafNXanI>
Date: Fri, 20 Feb 2009 12:46:27 -0800
Lines: 22
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit