Remove the dialog box when you run the app.doscript jsxbin file

I use InDesign CS6 and write a script loop in ExtendScript Toolkit CS6 (Extendscript ScriptUI 6.1.8 4.2.12)

I use a file jsxbin inside a loop.  After the jsxbin file is a popup alert dialog appaers script, saying: it's done and I have to click on the ok button, before it will allow my script to continue.  I run the file app.doscript jsxbin ("[jsxbin string here]").  I tried to change the level of user interaction to never interact before running the doscript, but this had no effect.  Is it possible to run the userInteractionLevels.NEVER_INTERACT as a parameter in app.doscript?  OR, is there a way to automatically close the popup alert script when it opens.  I'm trying to avoid having to press the OK button several times that the script is running.

I'm relatively new to scripting in InDesign.  Any advice or assistance would be greatly appreciated.

Hi callentill1308,

You're kind of asking for help to hack a jsxbin that isn't yours?

Well okay, we will try to find a fair solution. First of all, there are good reasons to assume that jsxbin code itself contains instructions forcing userInteractionLevel to INTERACT_WITH_ALL. Something like:

app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
// ...
// Process
// ...
alert('Done');

In this case, the parameter userInteractionLevel to NEVER_INTERACT in the calling script will have no effect.

But, if you are sure that the jsxbin script calls the alert() function, a radical way to bypass the message is to rewrite this function itself:

// inhibits alert()
$.global.alert = function(){ };

app.doScript( "[jsxbin string here]" );

@+

Marc

Tags: InDesign

Similar Questions

  • Photoshop opens the dialog box when you try to fill a layer with locked transparent pixels

    This script should set the layer to lock transparent pixels and then fill the layer with a color. She is doing this, except when it is in the filling phase, it opens the dialog box fill, and you have to hit OK.

    If you omit the transparent pixel line, it works as not expected, no dialog boxes.

    Is there a way to remove the box? Or I'm doing something wrong, which is causing the box to open?

    #target photoshop
    app.bringToFront();
    
    doc = app.activeDocument;
    doc.artLayers[0].isBackgroundLayer = false;
    doc.artLayers[0].transparentPixelsLocked = true;
    app.activeDocument.selection.fill(app.foregroundColor); 
    

    Not sure why this is happening.

    But I would recommend blocking the above and using the AM code for a fill that pays tribute to transparency.

    #target photoshop

    app.bringToFront ();

    doc = app.activeDocument;

    doc.artLayers [0] .isBackgroundLayer = false;

    doc.activeLayer = doc.artLayers [0];

    // =======================================================

    idFl var = charIDToTypeID ("Fl");

    var desc18 = new ActionDescriptor();

    var idUsng = charIDToTypeID ("Usng");

    var idFlCn = charIDToTypeID ("FlCn");

    var idFrgC = charIDToTypeID ("FrgC");

    desc18.putEnumerated (idUsng, idFlCn, idFrgC);

    var idOpct = charIDToTypeID ("PCT");

    var idPrc = charIDToTypeID ("#Prc");

    desc18.putUnitDouble (idOpct, idPrc, 100.000000);

    TSM var = charIDToTypeID ("Md");

    var idBlnM = charIDToTypeID ("BlnM");

    var idNrml = charIDToTypeID ("Nrml");

    desc18.putEnumerated (TSM, idBlnM, idNrml);

    var idPrsT = charIDToTypeID ("PrsT");

    desc18.putBoolean (idPrsT, true);

    executeAction (idFl, desc18, DialogModes.NO);

  • Display the Properties dialog box when you click the icons on the desktop, but does not work

    I use windows vista. This morning after a normal start, any time I click on a desktop icon to open the properties of this program, but not the program itself. What happens to all the icons.

    Hi AmyWilliams,

    1. you remember to make changes to the computer before this problem?

    2 are you able to open the program when you right-click on it and select open?

    Step 1:

    You can check the following link and try to run the Fixit and check:

    Difficulty of broken desktop shortcuts and common system maintenance tasks

    Step 2:

    Given that this issue has started recently, you can also try a system restore and check.

    You can try to perform a restore of the system to a prior restore point you have been affected by the issue.

    Note: When you perform the system restore to restore the computer to a previous state, programs and updates that you have installed are removed.

    To run the system restore, you can consult the following link:

    System restore

    System Restore: frequently asked questions

    Hope this information is useful.

  • How can I set the title of the dialog box when I run taskflow as contextual dialog box?

    I'm looking at ADF Code corner 039. Operating instructions declaratively launch a workflow bounded in a small popup, http://www.oracle.com/technetwork/developer-tools/adf/learnmore/39-taskflow-in-popup-169181.pdf
    and have gotton it works, but I would like to first of all the title of the workflow.

    The article shows the popup without title. I want to place a title in the dialog box. This can be accomplished?

    I use JDEVADF_11.1.1.5.0_GENERIC_110409.0025.6013

    Thank you, Klaus.

    View BrowseDepartments activity in this example has no title. If you don't see a title. If you set the "Title" of the af node: document on the activity of this view, it will be displayed when the workflow is displayed this page in a pop-up window.

  • Displaying a dialog box when you open an application

    Hello

    I need to know is possible for me to show a dialog when the user opens my request?

    There will be an error when you put the code in the dialog box in the constructor.

    Does anyone of you have examples of code for this?

    Thanks in advance.

    I believe that by extracting the appropriate bits of the following three items, you should have enough information to be able to do it by yourself.

    How - to display a graphical interface to the BlackBerry device to start
    Article number: DB-00539

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800620/How_To _...

    It speaks of a GUI display to start the system, but the concepts are the same for the start of the application

    How - to create a splash screen
    Article number: DB-00119

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800332/800505/800256/...

    You shouldn't do this if you want to display a dialog box.

    How - to detect the availability of the system at boot
    Article number: DB-00642

    http://www.BlackBerry.com/knowledgecenterpublic/livelink.exe/fetch/2000/348583/800901/How_to_-_Detec...

    It strengthens the arguments made in the other articles in the KB.

  • Disable widgets in a dialog box when you click box...

    Hello

    I m using InDesign CS3 on MAC OS.

    I created a dialog box with 2 textfields and a checkbox. I want only the textfields to be visible at the same time...

    In other words, according to the value of the box (1 or 0), I have to disable the textfileds. Initially only textfield1 is active and checking the checkbox, textfield2 becomes active and textfield1 is disabled.

    Where should I give my code? How to disable operations, we use SuppressedUI.h.

    I tried this:

    bool16 BscDlgSuppressedUI::IsWidgetDisabled (const IControlView * widget) const
    {
    InterfacePtr < IWidgetParent > widgetParent (this, UseDefaultIID());
    Assert (widgetParent);

    PanelControlData ((IPanelControlData*) InterfacePtr < IPanelControlData > (widgetParent-> QueryParentFor (IPanelControlData::kDe faultIID)));
    Assert (panelControlData);

    IControlView * iControlView = panelControlData-> FindWidget (kBscDlgVisibleCheckBoxWidgetID);
    InterfacePtr < ITriStateControlData > TriStateControlData (iControlView, UseDefaultIID());

    bool16 y = TriStateControlData-> IsSelected();

    If (y)
    {
    WidgetID widgetID = GetWidgetID (widget);

    switch (widgetID.Get ())
    {
    case kBscDlgTextEditBoxWidgetID:
    Return kTrue;
    }
    }

    But this leads to application crash when launching it himself. I think it may be becausu trying to get the values of widgets in a diallog when the dialog box is not visible. Donno if I m right...

    Where should I give the code? can I call this method BscDlgSuppressedUI::IsWidgetDisabled() starting from the controller of dialogue? How?

    Can someone help pls with the code snippet...

    Pls guide me...

    Thank you.

    1. Yes. And in AutoAttach() you select what widget you want to listen to.

    2 IControlView-> Enable()

  • No dialog boxes when you click keyboard shortcuts?

    Hey all, I am trying to edit my hotkeys to better match to AVID. However, when I click on "Keyboard shortcuts" in the drop down menu, no dialog box appears. What I am doing wrong?

    Hi benfmon,

    Please close all Adobe Applications.

    Rename the folder 'Adobe' "Old Adobe", starting from these locations:

    (1) documents/Adobe

    (2) / Library/Application Support/Adobe of the user

    How to access the user's library:

    Access the hidden library files Mac OS

    Raise the first and accept the license agreement.

    And try to customize keyboard shortcuts.

    I hope this helps.

    Kind regards

    Ilyes

  • BlackBerry Z10 "Make sure you have sufficient network coverage" when you run android app download.

    Hello

    I want to remove and reinstall some out of my android apps.

    After that deletion of apps, Apps icon was disappear, but I can not reinstall it because is is still in the system.

    At resolutions that download 'android activity '.

    But now all trying to download this application. I'm getting "Make sure you have sufficient network coverage" this error msg.

    I tried

    -Clear cache

    -Sufficient coverage

    -Plan data does not work as well.

    I need to go back a few apps very badly

    Help, please

    The issue of "network error" has been resolved, so please let me know if you are still having this error when you try to download or update applications using BlackBerry World. Thanks for your patience so that this issue has been studied.

  • Display the dialog box when you open a report

    Hi all

    Currently, in one of the dashboard, for a particular report, I selected the link display in a separate window (properties-> display options - > link in a separate window). Since then, all the print, download links are displayed at the bottom of the report, users are Dungeon forget these links. I tried to post the links at the top of the report and tried the solution that I found on the forum. but, no luck.

    Instead, I want to display a warning message when they click on any part of the report in the newly opened window (since then, I've selected display options - > link in a separate window). If I create an alert by using narrative view box, the alert box will be open, if I click on that particular place.

    But, my requirement is, should the popup box are displayed by saying: "Please scroll to the bottom of the page to download/print the report" when users click on any where, on the report.

    Is this possible at all? I appreciate your help in this regard.

    Thanks in advance.

    -Is it possible to have the following views
    View 1: static text + pivot table1
    See 2: narrative view + pivot table2?

    In other words, is it possible to have fixed views as a point of view? Please notify.

    Thanks in advance.

    Yes, you can.

    (1) create all your individual points of view.

    (2) put the static text and Pivot Table in the Layout of the compound.

    (3) duplicate available composed to get Compound page layout: 2

    (4) while Compound layout: 2 delete and add narrative view and Pivot Table views: 2.

    (5) duplicate Mateur mode once more for the compounds page layout: 3

    (6) create the view selector with implantation and setting compound in page: 2 compound as the two points of view. Name them appropriately.

    (7) in the Layout composed: 3, delete all notices and add selector display.

    Now, users can switch between the two sets of views.

    Edited by: David_T on October 5, 2010 14:48

  • No longer get a dialog box when you save a bookmark

    That's all. Unable to save a bookmark.

    Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the Add-ons is the cause of the problem (switch to the DEFAULT theme: Tools > Modules > themes).

    • Makes no changes on the start safe mode window.

    See:

    If this does not work in mode without failure, then disable all extensions and then try to find out who is the cause by allowing both the problem reappears.

    • Choose "Disable all add-ons" on issues to troubleshoot Firefox in Safe Mode to set window to disable all extensions.
    • Close and restart Firefox after each change through "file > exit ' (Mac: ' Firefox > leave";) Linux: "file > exit ')
  • Trying to remove Debugger dialog boxes

    Hi all

    We have a problem that we are not able to remove Debugger dialog boxes when you use the:

    SuppressDebuggerExceptionDialogs = 1

    in the file placed in the root of the logged on users profile:

    c:\Users\ < loggeduser > \mm.cfg

    Security on the file is set to < loggeduser > = full control.

    The problem is that it only works if I connect on the desktop as an administrator account.  I even made the non-admin account member of the local administrator group on the client computer, and it still does not work.

    I checked with Adobe support, and they have checked that the file is simply a framework so that Flash Player debugger and check the settings and the necessary - the flash player product does not seek to write data anywhere and so it should not be a permission problem.

    I wonder if there is someone else out there who provides the debugger solution in an enterprise environment with the dialog boxes lost for the majority of the community of users.

    the alternative is to provide 2 update of flash player - that seems a tad overkill!

    Thank you to everyone who reviews and comments.

    Jim

    Anyone else out there whose network admins remap the local profile to a %HomeDrive% the mm.cfg should be located at the root of the network path.

    This will allow full control to delete or allow the debugger dialog boxes.

    Concerning

  • Just had help installation cc 2014. get this dialog box when I open the app. One or more files in the folder required for the operation of photoshop adobe are missing. Help

    Just had help installation cc 2014. get this dialog box when I open the app. One or more files in the folder required for the operation of photoshop adobe are missing. Help

    Run the cleanup tool to remove Ps CC 2014:http://www.adobe.com/support/contact/cscleanertool.html .

    Restart the computer and then try to reinstall Ps CC 2014.

    Kind regards

    Ashutosh

  • Key on the keyboard does not work in firefox box when you type in the web site, but it works everywhere else?

    Key on the keyboard does not work in firefox box when you type in the web site, but it works everywhere else?

    Try Firefox SafeMode to see how it works there.

    A way of solving problems, which disables most of the modules.

    (If you use it, switch to the default theme).

    • You can open the mode without failure of Firefox 4.0 + by pressing the SHIFT key when you use the desktop Firefox or shortcut in the start menu.
    • Or use the Help menu option, click restart with the disabled... modules while Firefox is running.

    Do not choose anything at the moment, just use 'continue in safe mode.

    To exit safe mode of Firefox, simply close Firefox and wait a few seconds before using the shortcut of Firefox (without the Shift key) to open it again.

    If it's good in Firefox Safe mode, your problem is probably caused by an extension, and you need to understand that one.

    http://support.Mozilla.com/en-us/KB/troubleshooting+extensions+and+themes

    Can be caused by an add-on to the AVG.

    When find you what is causing that, please let us know. It might help others who have this problem.

  • Tecra S2 began to turn off the power when you run some heavy applications

    I have laptop Tecra S2 and (almost 3 years) had no problem so far.

    Recently, it started to turn off instantly when you run some heavy duty applications, such as games. He takes turns instantly and can work hours if it's just a spreadsheet or just Web broswing documents but when I start a game it takes 15-20 minutes.

    Once I started it even once, it takes less time to get the same result.

    My guess is overheating - any ideas how to fix?
    Or it may be something different?

    See you soon

    Hello

    There is nothing to fix. The laptop needs to be cleaned. It must be done on the professional track. This means that the laptop must be disassembled as just at the moment when the cover is removed the cooling fan and the cooling rack can be cleaned properly.

    After having this laptop will work like new.

  • Vista OS does not load. I tried booting and the load screen bar continues to work without success. When you run the start he stops to c:\windows\system 32\cmd.exe that I don't want to lose my files so I have not reinstalled. Any suggestions?

    Vista OS does not load.  I tried booting and the load screen bar continues to work without success.  When you run the start he stops to c:\windows\system 32\cmd.exe that I don't want to lose my files so I have not reinstalled.  Any suggestions?

    Restore point:

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

     

    If restore work not and you do not have a Vista DVD from Microsoft, do a repair disc to do a Startup Repair:

    Download the ISO on the link provided and make a record of repair time it starts.

    Go to your Bios/Setup, or the Boot Menu at startup and change the Boot order to make the DVD/CD drive 1st in the boot order, then reboot with the disk in the drive.

    At the startup/power on you should see at the bottom of the screen either F2 or DELETE, go to Setup/Bios or F12 for the Boot Menu.

    When you have changed that, insert the Bootable disk you did in the drive and reboot.

    http://www.bleepingcomputer.com/tutorials/tutorial148.html

    Link above shows what the process looks like and a manual, it load the repair options.

    NeoSmart containing the content of the Windows Vista DVD 'Recovery Centre', as we refer to him. It cannot be used to install or reinstall Windows Vista, and is just a Windows PE interface to recovering your PC. Technically, we could re-create this installation with downloadable media media freely from Microsoft (namely the Microsoft WAIK, several gigabyte download); but it is pretty darn decent of Microsoft to present Windows users who might not be able to create such a thing on their own.

    Read all the info on the website on how to create and use it.

    http://NeoSmart.net/blog/2008/Windows-Vista-recovery-disc-download/

    ISO Burner: http://www.snapfiles.com/get/active-isoburner.html

    It's a very good Vista startup repair disk.

    You can do a system restart tool, system, etc it restore.

    It is NOT a disc of resettlement.

    And the 32-bit is what normally comes on a computer, unless 64-bit.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Data recovery, if/before you reinstall:

    1. slave of your hard drive in another computer and read/save your data out there.

    2. put your Hard drive in a USB hard drive case, plug it into another computer and read/save from there.

    3 Alternatively, use Knoppix Live CD to recover data:

    http://www.Knopper.NET/Knoppix/index-en.html

    Download/save the file Knoppix Live CD ISO above.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    http://isorecorder.alexfeinman.com/isorecorder.htm

    Download the Vista software from the link above.

    After installing above ISO burning software, right click on the Knoppix ISO file > copy the Image to a CD.

    Knoppix is not installed on your PC; use only the resources of your PC, RAM, graphics etc.

    Change the boot order in YOUR computer/laptop to the CD/DVD Drive 1st in the boot order.

    Plug a Flash Drive/Memory Stick, BOOT with the Live CD, and you should be able to read the hard drive.

    When the desktop loads, you will see at least two drive hard icons on the desktop (one for your hard drive) and one for the USB key.

    Click on the icons of hard drive to open and to understand which drive is which.

    Click the icon for the USB drive and click on "Actions > Change the read/write mode" so you can write to disk (it is read-only by default for security reasons).

    Now to find the files you want to back up, just drag and drop them on the USB. When you're done, shut down the system and remove the USB key.

    See you soon.

    Mick Murphy - Microsoft partner

Maybe you are looking for

  • Saved password may be in alphabetical order

    Hello I am a member of the Tagged site and play pets and have about 75 profiles. Is there anyway that Firefox can alphabetize the?

  • Cracked chassis of the Satellite R630-138

    Hello everyone, I'm living in the United Kingdom and I have trouble finding someone who can solve my laptop. They said is impossible find the chassis. Any suggestions where I can find it? Thanks for the replies

  • iTunes Remote

    Are there plans for a version full screen full of features of the iTunes remote for Pro iPad app?  In other words, a screen identical to that you would get on a desktop Mac?

  • Too much upload-need to understand why

    MacBook Air (4 GB, 1.7 GHz) became slower in the last two months or today, it wasn't usable all the afternoon. Finally, I used "Clean my Mac" about a month ago.  I have 34 free GB to 120 GB of storage. Off iCloud. Called ISP - they said that the down

  • sudden error "too many listeners on GPIB.

    Out of the blue, I'm suddenly in the face of this "too many listeners on the GPIB" error, and my PC has found is more all instruments in NOR-MAX. I have a GPIB-USB-HS connected to my PC and 8 instruments (some HP4142b, Keithley instruments, electrici