Run the jsx as exe without dialog boxes

Hi all

#target "indesign - 7.0.

Alert ("testing");

Screen shot 2013-12-16 at 6.50.38 PM.png

I use this code to run the javascript code in InDesign CS5. If I double click on this javascript file, it actually runs and giving the message alert, but before he asks 'Yes' or 'No' dialog box. I don't want to see this dialog box. How can I do?

Thanks in advance,

Mahesh

Put the script in a folder named "Adobe scripting" in your documents folder and run it from there.

Ariel

Tags: InDesign

Similar Questions

  • "Without dialog boxes open" AppleScript always show some of the dialogues

    I'm opening, running a script and save a long series of files via an applescript script. (see the important part of the script below) Works very well, but I still get the occasional dialog box when a file is missing a linked picture or if I get an error "not enough memory to open illustration."

    Is it possible to add a timer for the dialog boxes that pop up, so they automatically cancel themselves out.

    Is it possible to remove errors (if they are not seen as dialog boxes)?

    Thank you

    Alex

    Tell application "Adobe Illustrator"

    Try

    Open (fileToOpen as alias) without dialog boxes

    on error number error_number chaine_erreur

    end try - end try to open in illustrator

    Try

    make javascript alias scriptJS - connects the JS script file

    Set returnedFullText to the result

    try to end

    tell the end

    I think I found the answer, unless it's pure coincidence that the errors stopped appearing on the next test:

    Add the following in the row above the open statement has worked:

    Set the level of user interaction never interact

  • How can I open the "Convert to indexed colors" dialog box with custom presets?

    Hello

    I need to automatically open the "Convert to indexed colors" dialog box in Photoshop. Before and after that I have a few scripts that are running, so it is not possible to open the dialog manually. Also, I want to put some custom presets (like the number of colors, etc.).

    Find something similar to what I want for the color range selection (opens the dialog with the presets you put in that):

    function colorrange(enabled, withDialog, fuzziness) {
        if (enabled != undefined && !enabled)
          return;
        var dialogMode = (withDialog ? DialogModes.ALL : DialogModes.NO);
        var desc1 = new ActionDescriptor();
        desc1.putInteger(app.charIDToTypeID('Fzns'),fuzziness);
        var desc2 = new ActionDescriptor();
        desc2.putDouble(app.charIDToTypeID('Lmnc'), 31.22);
        desc2.putDouble(app.stringIDToTypeID("a"), 0.86);
        desc2.putDouble(app.stringIDToTypeID("b"), 0.31);
        desc1.putObject(app.charIDToTypeID('Mnm '), app.charIDToTypeID('LbCl'), desc2);
        var desc3 = new ActionDescriptor();
        desc3.putDouble(app.charIDToTypeID('Lmnc'), 95.34);
        desc3.putDouble(app.stringIDToTypeID("a"), 54.59);
        desc3.putDouble(app.stringIDToTypeID("b"), 49.85);
        desc1.putObject(app.charIDToTypeID('Mxm '), app.charIDToTypeID('LbCl'), desc3);
        desc1.putInteger(app.stringIDToTypeID("colorModel"), 0);
        var desc4 = new ActionDescriptor();
        var desc4 = executeAction(app.stringIDToTypeID('colorRange'), desc1, dialogMode);
      };
    

    How can I get the same thing for the indexed color conversion dialog box? Apart from doing a lot of guessing about the stringIDs.

    Is there some kind of "table of choice" for char and string ID?

    Guys thank you very much in advance! This forum has been a great help on several occasions.

    OK never mind I got it, stupid me.

    He has recorded with Listener Script and changed the "DialogMode" parameter of the function of executeAction "DialogModes.No" at "DialogModes.All".

    var idCnvM = charIDToTypeID( "CnvM" );
                var desc249 = new ActionDescriptor();
                var idT = charIDToTypeID( "T  " );
                    var desc250 = new ActionDescriptor();
                    var idPlt = charIDToTypeID( "Plt " );
                    var idClrP = charIDToTypeID( "ClrP" );
                    var idSele = charIDToTypeID( "Sele" );
                    desc250.putEnumerated( idPlt, idClrP, idSele );
                    var idClrs = charIDToTypeID( "Clrs" );
                    desc250.putInteger( idClrs, 4 );
                    var idFrcC = charIDToTypeID( "FrcC" );
                    var idFrcC = charIDToTypeID( "FrcC" );
                    var idNone = charIDToTypeID( "None" );
                    desc250.putEnumerated( idFrcC, idFrcC, idNone );
                    var idTrns = charIDToTypeID( "Trns" );
                    desc250.putBoolean( idTrns, false );
                    var idDthr = charIDToTypeID( "Dthr" );
                    var idDthr = charIDToTypeID( "Dthr" );
                    var idDfsn = charIDToTypeID( "Dfsn" );
                    desc250.putEnumerated( idDthr, idDthr, idDfsn );
                    var idDthA = charIDToTypeID( "DthA" );
                    desc250.putInteger( idDthA, 75 );
                var idIndC = charIDToTypeID( "IndC" );
                desc249.putObject( idT, idIndC, desc250 );
            executeAction( idCnvM, desc249, DialogModes.ALL ); //Change from NO to ALL
    
  • How to refresh the current page after the return of a contextual dialog box?

    Hello

    In jdev 11.2.3,

    In a jsff page, I have a commandbutton control to start a dialog popup and actionListener like this:

    < af:commandButton text = "Select Bills" id = "cb1" actionListener = "#{newReceiptBean.refreshBillPending}" >

    < af:showPopupBehavior popupId = "p1" / >

    < / af:commandButton >

    or

    < af:commandButton text = "Select Bills" id = "cb1" actionListener = "#{newReceiptBean.refreshBillPending} '"

    action = "#{newReceiptBean.refreshBillPending}" >

    < af:showPopupBehavior popupId = "p1" / >

    But the 'newReceiptBean.refreshBillPending' method can be run even if it can be executed by another button like this:

    < af:commandButton text = "ExecuteWithParams."

    Disabled = "#{!}" bindings. ExecuteWithParams.enabled}"id ="cb3 ".

    action = "#{newReceiptBean.refreshBillPending}" / >

    How to run a bean method, after the return of a pupup dialog box?

    Thank you!

    Post edited by: BAO. SZ It seems after setting showPopupBehvior for the button, 'action', and "actionListener" cannot be performed more. Can someone give any help? Thank you.

    I'm not sure that clearly understand your requirment. But have you all ok or cancel button in your popup?

    Well, you can use diaglogListener in your popup if you use dialog.in your dialoglistener runs your bean method.

    see this example

    Handling Ok and the button cancel in af:dialog to context-sensitive help in Oracle ADF by dialogListener | Techartifact

  • Error-cannot run the file: iexplore.exe. ShellExecuteEx failed; code 2.

    Hello, my pc is very slow, and then restored the system.
    And I had to delete the game 'perfect world '. I had Setup, install and went again. Except that this error when you have completed installation:

    Cannot run the file: iexplore.exe
    ShellExecuteEx failed; code 2.
    The system cannot find the specified file.

    I tried "Run as Administrator" and also play with the "Simple Start" and continued with the error.

    Or find me in my computer the "iexplorer.exe".

    A friend told me that there is an error in the "System32" folder But I haven't changed it.

    What is this error? Can I format the computer?

    PS: I do not speak or write English very well. Sorry for mistakes in the text.

    Click Start, type: enable or disable windows features

    Press enter

    Uncheck Internet Explorer

    Click OK

    Restart if prompted.

    Click Start, type: enable or disable windows features

    Press enter

    Uncheck Internet Explorer

    Click OK

    Restart if prompted.

    Check to see if you can launch Internet Explorer

    If the problem persists:

    Click Start
    Type: CMD, according to the results, right-click CMD
    Click on "Run as Administrator"
    At the command prompt, type: sfc/scannow

    This will check for any breach of integrity

    Restart your system

  • Installed dictionary software (babylon 8), but I saw this message: "error 0 runs the command setup32.exe. How to solve this problem?

    Original title: error setup32.exe

    Hello. Thank you for your reading this question.

    I was installing a software dictionary (babylon 8), but I saw this message: "error 0 runs the command setup32.exe. Can you help me to solve this problem?

    Moved Windows 7 installation, set at level and activate Forum.

    Hello

    I changed the windows of my laptop and the problem has been resolved.

    Thank you very much.

  • Cannot process the request because a modal dialog box or the alert is active

    I can't work for the life of me why I get this message when "cannot process the request because a modal dialog box or the alert is active. I simplified my code to reproduce the problem.

    All I want to do is have a dialog box that allows me to edit items on the page... But it does not seem to allow it. I must be missing something simple.

    var selection = app.activeDocument.selection[0];
    
    dialog = new Window('dialog');
    
    var button = dialog.add('button', undefined, 'Resize');
    
      button.onClick = function() {
    
      selection.geometricBounds = [0, 0, 10, 10];
    
    };
    
    dialog.show();
    

    If you use 'dialogue', then you must leave the modal state to interact with the app was done by closing the dialog box.

    var w = new Window('dialog');
    var v = w.add ('edittext');
    var b = w.add('button');
    b.onClick = function(){
        w.close(1);
    }
    if (w.show()==1) alert (v.text);
    

    Or switch to modal MOM like brother suggested dialog boxes...

    Loïc

    Ozalto | Productivity-oriented - Loïc Aigon

  • print without dialog box

    Hello.I want to print without dialog box will appear. Is this possible with as3 flash professional?

    Thanks in advance.

    not possible, and that would be bad enough if it was possible.

  • Where is the location of the AI CS4 plugin filter dialog box?

    Hi all

    IM using CS4. In the CS4 SDK sample projects, "Tutorial" is a type of filter plugin, and I want to test this plugin.

    Project is compiled correctly and created plugin. Placed this plugin in the plugins of the AI folder.

    and then started to HAVE. The plugin tutorial shows under object-> filter-> SDK-> tutorial

    I clicked on "Tutorial" plugin from the menu filters. A dialog box is open. the value of some parameters in the user interface, and then click OK.

    The dialog box disappears after clicking on the OK button.

    now, how can I get the dialog ('Tutorial') same again? Where can I see the "Tutorial" dialog in artificial intelligence?

    As if we apply a 3d rotation effect, then the 3-d rotation dialog box is visible in the appearance Panel. If we want to change the settings, we can click "3-d rotation" in the appearance Panel, then the 3-d Rotation dialog box will be opned.

    Please tell me.

    -spirit

    Depending on what your filter (that is, if it leaves an effect or if it changes only the art), he can add a message in the appearance Panel. It is generally for the 'effects' no filters, although the distinction is somewhat blurred. One of the reasons why they took the menu filters in CS4 is because most of the "filters" were actually just the art operations and better adapted to be placed as menuitems in more appropriate places. The effects really are pieces of code that are returned when necessary on the art of change their representation on the settings page.

    If you just do something art once (like the simplification of the art, or reflecting the art) so you're not an effect. If this is the case, you can create just one menuitem anywhere you feel is right, if you do not want to be locked in the object > filter. Being a filter is not really give you a lot more more. You can simply create a menuitem, respond and do your job. The filters come with luggage as parameters of filter and 'fire last filter' and whatnot, and frankly, which is phased out. Its more a concept shoehorned in Illustrator Photoshop.

  • to run the Oracle 10 g without jinitiator forms

    Hello, I am working with version 10 g 2 with jinitiator. Can you explain how to configure the system to run the Oracle 10 g without jinitiator forms?

    Thank you

    You can see this article of Francis, which explains how to use the form with the plugin from Sun.

    [http://fdegrelle.over-blog.com/article-4135746.html]

    Hope it helps you,
    Fabrizio.

    If this answer is useful or appropriate, please mark. Thank you.

  • How can I make all my actions run automatically, without dialog boxes that appears after each step?

    My question is in what regards Actions. I have my Options of accelerated reading the value, and I unchecked the option 'Allow Recording tool', but every time I run a certain set of actions, a dialog box is displayed for each step and I have to press return to continue after each step. In my mind, which reduces the value of action in the first place. Any ideas on how to solve this problem? Thank you very much!

    In the control panel actions are two boxes next to each action. The first is a check mark and the second looks like one of three things: a red box, a gray or an empty box. If they red or grey area is there then the dialog boxes will be displayed. Turning point of this area on 'stop' should fix your problem.

  • Adobe Reader XI print obscured by the task bar in IE dialog box

    When using Internet Explore 11 with Adobe Reader XI and try to show the causes of dialog box print dialog windows to be positioned in the lower left corner of the screen every time.  Positioning of the print in a neighborhood view dialog box is not known.  Whenever the print to Adobe within Internet Explorer dialog box is used, the dialog window is displayed again in the lower left corner of the screen.

    I tested this problem on Windows 7 32/64-bit and 64-bit Windows 10.  Adobe Reader 9 running on Windows 10 machine under the same senerio does not trigger this action, but is rather the print dialog box squarely in the middle of the screen where it belongs.

    !cid_ii_154769406b2d1676.png

    I found a few other reports of this behavior mentioned elsewhere, but no one has an answer on how to fix this problem.

    Hi Tariq,

    Thanks for your effort / suggestion.

    I tried this on three machines to test with any changes noted.

    The print dialogue box displayed in Firefox and Google Chrome are displayed normally.  Well well, the less usable.  The problem is related to Internet Explorer 11 in combination with XI Adobe and Google Calendar.

    During this phase of testing, however, I open PDF files in Internet Explorer and launched the Adobe printing functionality without worries, it is shown in this first assignment.

    So now, I'm leaning more that it's a matter of Google Calendar.

    D

  • DIAdem - import programmatically .csv files with. STP file without dialog box

    Does anyone know how to import programmatically with a .csv files. STP file without opening the import box dialog box every time?

    I've been through the forum and seen for .xls files and solutions through the help file which is recommended to use the ExcelImport command, but these do not seem to work for .csv file types.  I am currently using the DataFileLoad command to import the files, which works very well to load the .csv files, but it forces me to go to the. STP file for each file.

    Does anyone know a better way to import a file .csv programmatically?

    Wow... Who had a fraction of the time that does the method of the dialog box.  I'll have to revise the data portion my DiAdem Advanced manual Plugin.

    Thank you, Brad!

    Steve

  • Automate export PDF in a specific folder without dialog box

    Hi, this post is a continuation of another post, but this forum is no longer relevant.

    Basically, I asked if I could automate the export of my InDesign file to two settings PDF different (one for printing, one for the Web)

    I got it to work, but a step, I can't avoid is having to do facing a dialog box asking where to save the file.

    In an ideal world, I want TO just finished working on my InDesign file, run a script that could automate export to multiple PDF files using my custom settings of the Print and the Web and automatically put the PDF files in a folder (that I put in the script itself - not in a dialog box)

    Here's the script I modifed:

    // BS"D 
    // All rights reserved (c) 2015 by Id-Extras.com 
    // Free to use and modify but do not delete this copyright attribution. 
    // This script will export 2 pdfs of the current document 
    // Choose the PDF presets by altering their names below 
    // The second PDF gets a suffix added to its name. 
    // Modify the line below beginning name2 = to change the suffix. 
    // For more InDesign scripts: www.Id-Extras.com 
    d = app.activeDocument; 
    // Here you can choose the PDF preset 
    preset1 = app.pdfExportPresets.itemByName("Hubcast Ready-Press Quality"); 
    preset2 = app.pdfExportPresets.itemByName("Web-Ready (JPEG High 200dpi - No Color Conversion)"); 
    if (!(preset1.isValid && preset2.isValid)){ 
     alert("One of the presets does not exist. Please check spelling carefully."); 
     exit(); 
    } 
    if (d.saved){ 
     thePath = String(d.fullName).replace(/\..+$/, "") + ".pdf"; 
     thePath = String(new File(thePath).saveDlg()); 
    } 
    else{ 
     thePath = String((new File).saveDlg()); 
    } 
    thePath = thePath.replace(/\.pdf$/, ""); 
    name1 = thePath+"_PRINT.pdf"; 
    // Here you can set the suffix at the end of the name 
    name2 = thePath+"_WEB.pdf"; 
    d.exportFile(ExportFormat.PDF_TYPE, new File(name1), false, preset1); 
    d.exportFile(ExportFormat.PDF_TYPE, new File(name2), false, preset2);
    

    My document structure is as follows below, so, basically, I want to modify the script so that the final PDF ('_PRINT' and "_Applications Web") automatically export to the "Final" folder, I always held to a higher level of the folder that contains the InDesign file.

    Screen Shot 2015-11-09 at 10.17.54 AM.png

    Thanks in advance!

    Hello

    I hope that this code can respond to your request ;-)

    d = app.activeDocument;
    preset1 = app.pdfExportPresets.itemByName("Hubcast Ready-Press Quality");
    preset2 = app.pdfExportPresets.itemByName("Web-Ready (JPEG High 200dpi - No Color Conversion)");
    if (!(preset1.isValid && preset2.isValid)){
        alert("One of the presets does not exist. Please check spelling carefully.");
        exit();
    } 
    
    mDocName = d.name.substr (0, d.name.lastIndexOf('.'));
    mSourcePath = d.fullName.parent.toString();
    mRootPath =mSourcePath.substr (0, mSourcePath.lastIndexOf('/'));
    mTargetPath=mRootPath.concat('/final/');
    
    mNamePrint = mTargetPath.concat(mDocName,'_PRINT.pdf');
    mNameWeb= mTargetPath.concat(mDocName,'_WEB.pdf');
    
    if (!d.saved){
        d.save;
    }    
    
    d.exportFile(ExportFormat.PDF_TYPE, new File(mNamePrint), false, preset1);
    d.exportFile(ExportFormat.PDF_TYPE, new File(mNameWeb), false, preset2);
    
  • I can't navigate and select with the mouse in some ID dialog boxes

    I recently installed ID CC 9.1X64 on a PC running Windows 7 Professional with SP1.

    The application seems to work OK in regard to most but when some dialog boxes (for example Options of cell Style) pop up I cannot select items or navigate around the area by clicking with the mouse. I have to use the tab and return keys, which is awkward and done things, such as the definition of the outline styles, almost impossible.

    Does anyone have any idea why this might be happening? I had something similar with another application.

    Malcolm

    It is the following: panels and InDesign tools answer not to the clicks of the mouse (Windows 7/Vista)?

Maybe you are looking for

  • Loss of wireless device.

    my device: iMac 21 " bought year: end of 2011 model #: A1311 After 2 iOS updated there is my Wifi doesn't work! Learned the cause I heard it happened to many people, but I always connect with Ethernet anyway so no big thing to me. However I just did

  • Were all my old favorites restored when I used the patch 'places.sqlite.old '?

    I got the error message: "the bookmarks and history system won't be functional because one of the files of Firefox is used by another application. Some security software can cause this problem"and that by using the following steps (Solution 2) fix: h

  • UPS for h8 - 1540t

    I have a desktop H8 - 1540t and to install a UPS System.  How many watts should I allow?  The APC BE350G is the cheapest on Amazon, and it has 200 watts. The BE550G has 330 watts and is more expensive, and there are other models with more watts and m

  • Auto play/auto run does not not for pc games

    AutoPlay has stopped allowing me to select an option, when a device is connected or a CD is put in the disk drive, I have to open the devices via my computer. Also, AutoPlay stopped running when I insert a game that uses it and I have no way to open

  • HP G62-407DX notebook computer Bluetooth does not

    I have a HP G62 407DX laptop running Windows 7 OS. It's my first attempt to get the Bluetooth running on this system since I bought it 2 years ago. Please correct me if I've done all this evil. -Module Bluetooth has not been detected on my device man