doScript runtime with a GUI error

Hi all

I am facing a problem, I got a dialog box and several options of Checkbox in that and for every box I have just wan to run a script.

but it shows an error after clicking on the ok button, the error is

"Can't manage demand because a modal dialog box or the alert is active.

Here is my code

function ps()

{

var res =

"dialog {------}.

orientation: 'column ', \

alignChildren: 'left ', \

img:Image {------}

size: [130,90].

}\

xmlot:Panel\

{\

xml:Group {------}

orientation: 'row ', \

s:StaticText {text: 'Select for XML Export'} \

box b: {text: 'Word Out of the Index', alignment: 'left'}, \

c: box {text: 'Index Out with Page number', alignment: 'left'}, \

d: box {text: 'XML Out', alignment: 'left'}, \

}\

},\

buttons: group {orientation: 'row', alignment: 'just'------}

okBtn: button {text: 'OK', properties: {name: 'ok'}}, \

cancelBtn: button {text: 'Cancel', properties: {name: 'Cancel'}}.

} \

}";

var win = new Window(res,"Utility");

win.center ();

(" win.img.icon = File("/InDesign/logo.jpg ");

win.buttons.okBtn.onClick = function)

{

If (App.Documents.Count () > 0)

{if(win.xmlot.xml.b.value==true)

{app.doScript (new File("/InDesign/wo.jsx")(, ScriptLanguage.JAVASCRIPT) ;}}

if(Win.xmlot.Xml.c.Value==true)

{app.doScript (new File("/InDesign/Generation.jsx")(, ScriptLanguage.JAVASCRIPT) ;}}

if(Win.xmlot.Xml.d.Value==true)

{app.doScript (new File("/InDesign/Export.jsx")(, ScriptLanguage.JAVASCRIPT) ;}}

}

}

win.buttons.cancelBtn.onClick = function () {}

Win.Close (true);

}

Win.Show ();

}

Hey!

You must move the function that is executed when you click outside the dialog box.

--

tomaxxi

Tags: InDesign

Similar Questions

  • Premiere Pro does not play the clips in the timeline because the runtime with the software error

    Hello

    Play button on the software stopped working two weeks after the purchase.

    Can someone from Adobe or a user familiar with the issue of reading please send details if they are relevant

    Adobe Premiere Pro CC 2015

    Hello

    The problem seems to be fixed due to phone support through their call centre in India.

  • Rendering and export failed with an unknown error because of the color of Lumetri?

    I am rendering & export failures with an 'unknown error' code within Premiere Pro and Media Encoder.  I think that the problem is related to the Lumetri color filter that is widely used in all of the timeline.  There are hundreds of clips and each clip has 2-4 color filters Lumetri applied.  Each clip also has the red giant Cosmo and filter FilmConvert Pro 2.36.1 coming to overlap (visually underneath by order of effects filters Panel) all filters from Lumetri.  The reason why I believe that the problem is related to the Lumetri color filter is that it is the first time that I use.  Previously, I used the filter red giant Colorista III coloring, but last week decided to try using the Lumetri color for the same effect.

    Please let me know if anyone has had similar experiences, what were their solutions, or if someone has some ideas on how to solve this problem.  I would really appreciate the help!

    System details:

    Windows Pro 64-bit 10

    Intel i7 5960 X 8-core 3.0GHz (cooled water and too quick to 4.2 GHz)

    64GB 2133 MHz DRAM (non-ECC)

    2 x Nvidia GTX 980 4 GB GPUs (not in SLI)

    Intel 750 PCIe 400 GB SSD (for BONES)

    SSD Pro 1 TB Samsung 840 (for Adobe Cache)

    SSD Pro 1 TB Samsung 840 (for export)

    Matrix RAID 5 of 48 TB (eight 6 TB HDs with MegaRAID, LSI 9361-8i card) (for media)

    Information on the timeline:

    1920 x 1080 (original video files are MP4 UHD scaled down by 50% in the timeline)

    23.976 fps

    CUDA Mercury Render Engine

    Length of the sequence: 14:30

    I have discovered a workaround of sorts.  I noticed that when rendered in PP he would make progress before a failure (the green line that precedes the timeline would get a little longer).  If I saved this progress and rebooted the system, then tried to make it again, it would make a little further.  I've done this dozens of times for 4 hours make completely a 14:30 long sequence.

    I noticed doing this routine that my CPU was maxxed on all rendered.  Resource monitor reported the use of CPU to 143% continuous (all other indicators RAM, disk speed, etc. were well under their maximums).  This brings me to suspect that maybe there is a problem with overheating of the CPU.  But who would be closed for the entire system, correct?

    Once the entire sequence has been made (all the green lines above clips) I tried export by using the "Use preview files" option enabled.  Failure again.  I tried export uncompressed AVI, Quicktimes and PNG sequences.  All have failed.  I tried to export to PP as well as TEA.  The two have not.  I tried to export with option 'To make maximum quality' is enabled.  Surprisingly, this product the longest time encoding managed (32 minutes before failure).  As by chance, using the option of MRQ kept my CPU loads sawtoothing between 100% and 75%, then maybe there's something to the CPU overheating theory?

    In an ultimate attempt desperate to save my video project (looming deadlines!) I divided the sequence of Assembly in five servings (I cut on the melted white or fade-to-black transitions) and exported to each of them.  This copy export times within 20 minutes.  It worked.

    I noticed this another Adobe Forums thread that seems to speak of the similar difficulties with effects of Lumetri in Creative Cloud 2015.  Perhaps the Lumetri effects are not ready for prime time?

    https://forums.Adobe.com/thread/1236018?start=0 & tstart = 0

    Please let me know if anyone has any ideas on this.  In the meantime, I'll wind up this project and never use Lumetri effects again.

    Hello Kevin,

    Thank you for offering help to solve this problem.

    I was able to export the majority of the sequence with all the Lumetri effects, red giant and FilmConvert mixed in clips.  After the sequence using the tedious method described above I segmented the sequence in the quarterfinals; all exported except one.  I divided it into two; Another exported doesn't have.  I cut half too, once again only half exported without failure.  I finally reduced the embarrassing part until a second sequence clips 35; an interview with green screen with superimposed titles and superposition of b-roll clips.

    I removed all the effects of the Lumetri of these clips and replaced by Red Giant Colorista III effects, which are very similar to the effect of Lumetri in the GUI and application.  The sequence made completely without "unknown error."  Then it was exported successfully (and used about 70% when compared to more CPU activity 110% with the Lumetri to export).

    The difference would be that the effect of color of Lumetri has this YUV icon next to it in the effect controls panel?  Which means that YUV?

    The problem is perhaps not totally related to the color of Lumetri effect (as I said, I was able to export the majority of the 14:30 sequences use, although gradually by segmentation of the sequence into smaller portions), but if the move is a solution then I'll use it.

    I lost a day to fix this.  If this thread is useful to someone else, then it was worthwhile.

  • Help!  Get pop-ups with CODE of ERROR: sec_error_X1X510_A

    I have an iMAC end of 2012, 3.4 GHz Intel Core i7, 16 GB 1600 MHz DDR3. NVIDIA GeForce GTX 680MX 2048 MB, El Capitan iOS

    When you use Safari, Google home page, I type a domain and it goes to what I believe is a pop-up fake Apple Support with CODE of ERROR: sec_error_X1X510_A.

    Need help solving this. THX

    You have probably installed some adware. Please post a report of EtreCheckof your system. We then look for obvious problems. Please click on the link, download the application and run the report. Once you have the report, please copy and paste into your response to this post.

    If you would like more information on what is EtreCheck, just click on the link and you will find a description of the application.

  • Using Firefox 4 and Windows 7. Whenever I have to start Firefox from a shortcut to a Web site, what happens with the following error "there was a problem sending the command to the program". The requested site is loaded after that. without any problem.

    Using Firefox 4 and Windows 7. Whenever I have to start Firefox from a shortcut to a Web site, what happens with the following error "there was a problem sending the command to the program". The requested site is loaded after that. without any problem.

    If a shortcut is used while Firefox is already open the error will not occur.

    For me, the problem was the FoxClock extension. Once I disabled it, the problem was gone.

    Hope this helps.

    Olivier

  • HP Officejet 4632: hp officejet with an OXC4EB827F error code 4632

    I have a hp officejet 4632 with an OXC4EB827F error code and does not work, also the power button blinks continuously.  Tried the reset how to print HP and doctor Scan and it did not help, there is no response from the printer.  Any help would be apprciated as two years out of warranty.

    Hello!

    Welcome to HP's Forums a great way to get help.

    Thanks for your post. I see that you have a problem with your printer "HP Officejet 4632" that gives you an error message "OXC4EB827F".

    It looks like a hardware problem with the printer.

    Please try this link on the HP forum is the author of X-23 an HP Forum Expert certified. There is a link for the same series of the printer, but not the exact model of printer.

    Link:

    http://HP.care/2bP97Dx

    If this fails, contact HP Technical Support for your printer using this link service:

    http://HP.care/2bGzo6g

    I hope this helps! Let me know how it goes.

    Take care and have a nice day.

  • Satellite 5200 701 begins with SHLWAPI.dll error code

    My Satellite 5200 701 comes with SHLWAPI.dll error code, thn stops.

    Any help would be grateful!

    You can start your laptop in safe mode?

  • I can't convert Excel - it continues to flow upward with an unexpected error!

    I am trying to convert an invoice in Excel, but it continues to flow upward with an unexpected error. Help, please!

    Clear salvation,

    It is a forum of numbers. You can have better luck on an Excel forum.

    Quinn

  • Two TouchSmart PCs in different locations die on the same day with the same error? (BIOHD-2)

    Hi all

    It's really weird... and very frustrating.

    I own an IQ506 (with TV tuner) which I was quite pleased. So much so, that I had my office purchase, too (IQ504). But lately, my computer acted (locking up, freezing). Funny enough, the IQ504, we bought for work has also been acing similarly.

    Today, the IQ504 at work died. We ran startup diagnostics tool and found a problem with the hard drive (not detected).

    I'm here houses a TouchSmart work, but before going to bed, I tried to wake up from its sleep to see the doughnut of Vista of death. So I made a forced shutdown and restart. Then, I got an error "missing media, please restart." So I did. Several times, to see the same error. I'm trying to run the diagnostics F9 (which is slow to run) and find the diagnostic tools cannot find the HARD drive. I reboot again and enter the Setup program. Of course, no hard drive detected.

    This seems to be a strange coincidence. The two PCs in different parts of the city, BOTH die the SAME day with the SAME error?

    Dead hard drive? or the SATA controller would be dead?

    Please don't tell me that all the new photos of the birthday of my daughter are now gone...

    Is that what HP would cover under warranty?

    What can I do?

    Thank you

    Doon

    IQ506 running Vista Home premium. A device attached: HP LaserJet.

    Message edited by doon on 17/12/2008 01:32

    see you soon,
    Doon

    I just wanted you to know that...

    (1) the newly displayed firmware fix may not work for you immediately

    2) there is a solution!

    I just unbricked my drive and recovered ALL MY DATA! I look back to the top as I type...

    Here is the solution I posted:

    http://h30434.www3.HP.com/PSG/board/message?message.UID=34409#U34409

    I hope this helps!

    See you soon,.

    Doon

  • HP 2510 "Unable to communicate with the printer" error.

    Greetings,

    I recently bought a Deskjet all-in-one of HP 2510. I'm running on Windows 7 Home Premium 64-bit.

    When I try to print documents, the printer comes with the following error:

    http://i.imgur.com/uwK8MNq.PNG

    Try to use the print and scan tool doctor, I find a conflict report of driver:

    http://i.imgur.com/B9NCkTQ.PNG

    Thus, after following the instructions, I uninstalled and reinstalled as indicated (in taking very special care to make exactly as shown in the installation instructions). Errors still occur.

    I tried to delete the printer from the Device Manager, uninstalled the drivers of the various related devices out there, uninstalled the full software features using Add/Remove...then tried reinstalling again. I even tried to foregoing the installations CD and website (Yes, I tried both) and let Windows automatically installs the drivers. Always the same two errors original.

    It sucked to the top of my Sunday together. Someone saw?

    I managed to go today to get the USB power cord and it has indeed solved my problems. It seems that the USB cord that works with older models is not compatible with this printer, so that's been my problem.

    Fortunately, the new cord works perfectly and I was able to print two pages of perfect test.

    I apologize for my frustrated shattered earlier and thank you for your help.

  • Mathematical functions with input/output error

    Please refer to the attached picture. Where do you find these mathematical functions with input/output error? I saw these in response to a message.

    I think they appear when you connect a waveform or dynamic data type.  Since I rarely use these data types (just give the table!), I'm not positive.

    Lynn

  • Active Directory certificate services installation failed with the following error: unknown mapping algorithm. 0 X 80091002 (-2146889726 CRYPT_E_UNKNOWN_ALGO)

    Hello

    I installed the role of CA of the authority in the installation, I want to use the existing root certificate when I try to import this certificate .pfx, that I have this error

    Active Directory certificate services installation failed with the following error: unknown mapping algorithm. 0 X 80091002 (-2146889726 CRYPT_E_UNKNOWN_ALGO)

    Anyone know what's wrong

    Thanks for help.

    This issue is beyond the scope of this site (for consumers) and to be sure, you get the best (and fastest) reply, we have to ask either on Technet (for IT Pro) or MSDN (for developers)

    If you give us a link to the new thread we can point to some resources it
  • The discs to a hard drive with an IO error can be removed and placed in a good hard drive to try to recover the information about the bad drive?

    The discs to a hard drive with an IO error can be removed and placed in a good hard drive to try to recover the information about the bad drive?  Both units are of the same type and speed.  both are records hard internal seagate w double disc in the drives

    On Thu, 20 Sep 2012 14:41:30 + 0000, Stephen_403 wrote:

    The discs to a hard drive with an IO error can be removed and placed in a good hard drive to try to recover the information about the bad drive?  Both units are of the same type and speed.  both are records hard internal seagate w double disc in the drives

    No, at least not by us.

    Open a hard drive for some reason any at all can be done in special
    laboratory as parameters. Something else will destroy the disk.

    There are companies trying to recover data from broken disks,
    and they are sometimes successful. And who knows, maybe they
    sometimes use methods such as what you describe.

    But if you plan to use such a company, know what they
    are all very expensive. It does not for most people.

    For the future, if you have files you want to be sure are not
    lost, make sure to have in place a backup procedure on a regular basis the
    external media player.

    Ken Blake, Microsoft MVP

  • Please help me understand how to install updates with the following error updated Message__The following have not been installed: __Security update for Microsoft XP KB 2289162

    Please help me understand how to install updates with the following error Message

    The following updates were not installed:

    Security for Microsoft XP KB 2289162 update

    See the section "How to get help" of http://support.microsoft.com/kb/2289162

    For individuals, please visit the Microsoft Solution Center and antivirus security for resources and tools to keep your PC safe and healthy.  If you have problems with the installation of the update itself, visit the Microsoft Update Support for resources and tools to keep your PC updated with the latest updates.

    Buying to meet problems installing Microsoft security updates also can visit the following page for assistance: https://consumersecuritysupport.microsoft.com/

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • MSN Outlook, hotmail "IE has blocked this site to display content with security certificate errors. Click here for options... »

    MSN Outlook, hotmail "IE has blocked this site to display content with security certificate errors. Click here for options... »

    How can I get rid of this irritating pop-up message whenever outlook is open?

    Without knowing what are certificate errors, it is a shot-in-the-dark.

    80 90% of certificate in Windows XP errors can be attributed to one of the following two issues:

    1. Time Date, time, time zone, or light of day on your computer is/is not set correctly.  The time on your machine should be within 5 minutes of real time for certificates authenticate properly.  Right-click on your taskbar clock, and select time settings to check the correct time.  Synchronize time via Internet can solve this problem.
    2. Windows XP does a poor job of keeping its root certificates (certificates by which all other certificates are considered) up-to-date.  The newer versions of Windows did a much better job.  It certainly wouldn't hurt to update your root certificates and in many cases, this is all you need.  For update, visit the following article:
      "Members of the certificate program root Windows.
         <>http://support.Microsoft.com/kb/931125 >
      Then go down to the subsection titled "root Update Package (for Windows XP only).  Then click on the option "update for root certificates for Windows XP... "the link.  This will take you to the last downloadable update.  Download the package on your computer and double-click it to update your certificates

    One of the above should solve your problem.

    HTH,

    JW

Maybe you are looking for

  • No sound on Qosmio G20

    Silent sign is lit next to the volume control (blue lights volume mysteriously disappeared too) and cannot be disabled. Have you checked the sound is not muted, have also reinstalled the sound drivers, update BIOS and the corrected error message "rec

  • How can I delete several photos in my photo folder once

    How can I delete several photos at once in my photo file?

  • What do you do when you can't read DVDs even after you have downloaded a decoder.

    There was some message to try to reduce the number of colors displayed on your monitor or by reducing the resolution of the screen. What should I do if it does not work

  • xp need to support... have the product key

    I repair computers and give them to those who cannot afford it. I need downloads XP and XP Professional to put in the units that I put in new hard disks. I have the product key doesn't... no software. He was paid to Microsoft which is available for d

  • no support for cm1312 MFP scanning

    Product - HP CM1312 MFP color laser printer Operating system - OS X Lion HP Director does not open, says he is damaged or incomplete.  System report says no support for scanning.  Have loaded the software twice, still no luck.  Connected to ia USB ca