Can I suppress dialog outside script?

I have a start up script that is used in cross-plattform production. It fixes the links of pictures. Works fine but the user still gets the warning message before the script does its work. If the document is opened by script I can suppress the dialog but I did not find a way for the regular InDesign Open action.
Is it possible by script?
(I think it was the case in the old days that setting userinteraction level to neverinteract  would get rid of all dialogs but this seems to be no longer the case.)
Any idea?
Thank you,
Ralf

Okay, sometimes it is a good idea to simply ask a non-scripting guy. One can just turn off the dialog in the InDesign preferences.
I am sure you all knew that.
Ralf

Similar Messages

  • How to prompt user to select multiple files in file dialog using scripts

    Hi, is there a way to allow user to select multiple files inside the file dialog using scripts? So not just something like "*.ai" or "*.eps" but where the user can actually use their shift key to select a batch of files inside the file dialog and then the script would process each one.
    Thanks!

    // Main Code [Execution of script begins here]
    here's what I have so far. it would also be nice to not have illustrator stop at errors.. right now, it skips dialogs but on errors, it still stops.
    // uncomment to suppress Illustrator warning dialogs
    app.userInteractionLevel = UserInteractionLevel.DONTDISPLAYALERTS;
    var destFolder, sourceFolder, files, fileType, sourceDoc, targetFile, pdfSaveOpts, folderName;
    var fullPath = "";
    var finalSlash;
    // Select the source folder.
    sourceFolder = Folder.selectDialog( 'Select the folder with Illustrator .ai files you want to convert to PDF');
    f = find_files(sourceFolder);
    function find_files (dir)
        return find_files_sub (dir, []);
    function find_files_sub (dir, array)
        var f = Folder (dir).getFiles ("*.*");
        for (var i = 0; i < f.length; i++)
            if (f[i] instanceof Folder)
                find_files_sub (f[i], array);
            else
                if (f[i].name.slice (-3).toLowerCase() == ".ai"          || f[i].name.slice (-4).toLowerCase() == ".eps")
                        //convert the array-listing to a string so we can manipulate it
                        fullPath = String(f[i]);
                        //find the position of the last / to indicate where the filename starts
                        finalSlash = fullPath.lastIndexOf("/");
                        //get the foldername by "slicing" from start to where finalSlash is located
                        folderName = fullPath.slice(0, finalSlash).toLowerCase();                   
                        sourceDoc = app.open(f[i]); // returns the document object
                        // Call function getNewName to get the name and file to save the pdf          
                                                      targetFile_PNG = getNewName(".png");
                                                      if(targetFile_PNG.exists) {
                                                      } else {
                                                                pngExportOpts = getPNGOptions();
                                                                sourceDoc.exportFile(targetFile_PNG, ExportType.PNG24, pngExportOpts );
                        targetFile_PDF = getNewName(".pdf");
                        pdfSaveOpts = getPDFOptions();
                                                      sourceDoc.saveAs(targetFile_PDF, pdfSaveOpts );
                                                      targetFile_SVG = getNewName(".svg");
                                                      svgSaveOpts = getSVGOptions();
                                                      sourceDoc.exportFile(targetFile_SVG, ExportType.SVG, svgSaveOpts );
                        sourceDoc.close();
                        array.push (f[i]);
    getNewName: Function to get the new file name. The primary
    name is the same as the source file.
    function getNewName(ext)
        var ext, docName, newName, saveInFile, docName, finalDot
        var loop = 0;
        docName = sourceDoc.name;
        ext = ext; // new extension for pdf file
        newName = "";
        finalDot = sourceDoc.name.lastIndexOf(".");
        while(loop < finalDot)
            newName += docName[loop];
            loop = loop + 1;
        newName += ext; // full pdf name of the file
              newName = newName.replace(" [Converted]","");
        // Create a file object to save the pdf
        saveInFile = new File( folderName + '/' + newName );
        return saveInFile;
    getPDFOptions: Function to set the PDF saving options of the
    files using the PDFSaveOptions object.
    function getPDFOptions()
        // Create the PDFSaveOptions object to set the PDF options
        var pdfSaveOpts = new PDFSaveOptions();
        // Setting PDFSaveOptions properties. Please see the JavaScript Reference
        // for a description of these properties.
        // Add more properties here if you like
        pdfSaveOpts.acrobatLayers = false;
        pdfSaveOpts.colorBars = false;
        pdfSaveOpts.colorCompression = CompressionQuality.AUTOMATICJPEGHIGH;
        pdfSaveOpts.compressArt = true; //default
        pdfSaveOpts.embedICCProfile = false;
        pdfSaveOpts.enablePlainText = false;
        pdfSaveOpts.generateThumbnails = false; // default
        pdfSaveOpts.optimization = true;
        pdfSaveOpts.pageInformation = false;
        pdfSaveOpts.preserveEditability = true;
        return pdfSaveOpts;
    function getSVGOptions()
              var svgSaveOpts = new ExportOptionsSVG();
              //just using defaults aside from what's written below
      //see http://cssdk.host.adobe.com/sdk/1.0/docs/WebHelp/references/csawlib/com/adobe/illustrator/ ExportOptionsSVG.html
      svgSaveOpts.embedRasterImages = true;
      svgSaveOpts.sVGTextOnPath = true;
              return svgSaveOpts;
    function getPNGOptions()
              // Create the PDFSaveOptions object to set the PDF options
              var pngExportOpts = new ExportOptionsPNG24();
              // Setting PNGExportOptions properties. Please see the JavaScript Reference
              // for a description of these properties.
              // Add more properties here if you like
              pngExportOpts.antiAliasing = true;
              pngExportOpts.artBoardClipping = false;
              pngExportOpts.horizontalScale = 100; // scaling to 350%
              pngExportOpts.saveAsHTML = false;
              pngExportOpts.transparency = true;
              pngExportOpts.verticalScale = 100; // scaling to 350%
              return pngExportOpts;

  • Open "Attach file" dialog by scripting

    Hi,
    Is it posible to open the "Attach file dialog" by scripting?
    Thanks in advance, Oliver

    Hello,
    It is possible by using Acrobat scripting API.
    You can do it by the following code:
    event.target.importDataObject("name");

  • Can any1 provide me the script file which will genrate the X-axis label and Y-axis label ?

    I have two channels and I want to create a report with 2D axis system. I do not want to drag and drop those two channels into 2D axis system. Can any1 provide me the script by which I can automate the script in such a manner that while running the script only I will get label of X-axis and Y-axis.
    I tried with enabling the script but it was not able to generate X-axis label (Ex.-Time) and Y-axis label (Ex. - Speed)?
    Solved!
    Go to Solution.

    Hi Etn,
    The best way to create a script which manipulates an existing layout via script is using the Ctrl-A function within the parameterization dialogs.
    The following example creates a 2D axis system with one curve and sets the axis labelling explicitly:
    Call PicLoad("Template")                    'New layout
    Call GraphObjNew("2D-Axis","New_2DAxis1")   'Creates a new 2D axis system
    Call GraphObjOpen("New_2DAxis1")            'Opens the axis object
      D2AxisBackColor  ="grey"                  'Sets the background color
      D2AxisTop        =10                      'Sets the position
      D2AxisBottom     =10
      D2AxisLeft       =10
      D2AxisRight      =10
      Call  GraphObjNew("2D-Curve","New_Curve") 'Creates a new curve
      Call GraphObjOpen("New_Curve")            'Opens the curve object
        D2CChnXName      =ChnNameExt(1)         'Defines the x-channel
        D2CChnYName      =ChnNameExt(2)         'Defines the y-channel
        D2CurveColor     ="red"                 'Defines the curve color
      Call GraphObjClose("New_Curve")           'Closes the curve object
      Call GraphObjOpen("2DXAxis1_1")
        D2AxisXTxt       = "@@ChnName(CurrChnNo)@@ [@@ChnDim(CurrChnNo)@@] (My Speed)" ' Defines the x-label
      Call GraphObjClose("2DXAxis1_1")
      Call GraphObjOpen("2DYAxis1_1")
        D2AxisYTxt       = "@@ChnName(CurrChnNo)@@ [@@ChnDim(CurrChnNo)@@] (My Time)" ' Defines the y-label
      Call GraphObjClose("2DYAxis1_1")
    Call GraphObjClose("New_2DAxis1")           'Closes the axis object
    Call PicUpdate()                            'Updates the report
    Christian

  • Batch settings: Suppress dialogs

    I would like to batch a complete folder in Illustrator with an action.
    The only problem I am facing is that Illustrator doesn't have the option to supress dialogs, and therefore I have to click manually for each file to OPEN and SAVE.
    In Photoshop I don't have this problem, because there you can select the following options:
    - Suppress File Open Options Dialog
    - Suppress Color Profile Warnings
    My Question is: How can I suppress those dialogs in Illustrator?
    If that's not possible: How can I batch a complete folder without having to remove every dialog for each file?

    Has anyone experienced this problem?

  • How can i suppress columns in ALV ?? Will reward points.

    Hello Gurus, how can i suppress column in ALV when i`m using the transparent table:
    CALL METHOD grid->set_table_for_first_display
          EXPORTING
            i_structure_name = 'ZIANEXE'
            is_layout        = wa_layout
            is_variant       = wa_variant
            i_save           = 'U'
            IT_TOOLBAR_EXCLUDING = LT_EXCLUDE
          CHANGING
            it_outtab        = itab[]
            it_fieldcatalog  = fieldcat.
    Please help.

    in the fieldcatalog you are providing there is a field NO_OUT use this.
    Loop over internal table and check fieldname. If fieldname = column you want to hide, NO_OUT = 'X'.
    Edited by: Micky Oestreich on May 8, 2008 12:06 PM

  • How can I opearate indicator outside while loop?

    I do small program, I have many while loops and I want to connect wire (in my application) from each loop to AND gate then to another while loop, but how can I operate these wires to agree with the change of my application inside while loops.
    If not clear :
    In another words, suppose I want to operate indicator ouside the while loop. How can I operate indicator outside while loop, so when my application become TRUE (inside while loop) the indicator will be ON (outside while loop) and when my application become FALSE(inside while loop) the indicator will be OFF (outside while loop).
    Help me if you have any idea please..........................

    Hi Rammo,
    For the wire to carry the boolean condition from the while loop to an 'and' gate outside, the while loop must stop running
    If you want the while loop to keep on running and still pass a boolean value to a destination outside the while loop, use any one of these: property nodes, global or local variables.
    i am still not clear as to what you intend to say by this sentence
    " I want the wire that comes out from the while loop will become TRUE if it in my application is TRUE inside while loop and the opposite is true. Because I want to connect the wire that comes out from while loop to AND gate than to another application"
    plz tell me if the first part of this mail of mine answers your doubt or do you need more information?
    regards
    Dev

  • Can you view text outside of the canvas? as with the view menu you can see animation paths, bounding boxes and handles??? many thanks

    re: Motion 5
    can you view text outside of the canvas? as when using the view menu you can see animation paths, bounding boxes and handles???
    I'm in the middle of a text animation design treatment and unless my memory is completely failing I thought this was an option.
    An example would be selecting all layers and being able to see all bounding boxes and animation paths while moving along the timeline.
    Of course this could be quite a mess if you couldn't selectively chose which layers, its just with this current project it would be so helpful if
    I could see the text beyond the canvas to aid in my animations.
    many thanks,
    robert
    Motion 5
    2014 MacBook Pro 2.6Ghz i7
    16GB RAM
    OS X 10.9.5
    2011 Mac Pro
    4 Boot drives OS X 10.9.4, 10.10, 10.7, 10.8
    960GB OWC Mercury Accelsior_E2 PCI Express SSD (Current screaming fast boot drive)
    64GB RAM

    thanks for both of your responses
    I do understand shift + v " to "Show Full View Area" and shift + z to fill screen, etc.
    and command + & - for zooming
    what I'd like to do is selectively view, say, the text outside of the canvas as you can see the bounding box
    which contains the text or object when selecting one or all layers in the layers column
    I haven't used this feature in a while though I do recall using it in the past.
    Any help would greatly appreciated
    thanks,
    R.

  • How can I suppress an old backup of my iPhone ?

    I have bought a new one and I can't suppress backup of the older...

    I have done a new backup (iCloud) of my new iPhone (5S) and I can't delete the backup of the old one (5). Why ? How could I delete this backup which is usefull now ? iCloud tells me that the backup is still in use...

  • How can I run a SQL script file...

    How can I run a SQL script file from a location on my computer without providing the whole path?
    Is there some way I can set a "Working folder" in SQL Plus??
    Thanks!
    Tom

    You can create an environment variable called "SQLPATH" which is a list of directories that SQL*Plus will search for your .SQL
    scripts.
    I would like to use another directory than the oracle/bin...
    How can I do this ??
    Hello,
    U can do this by this way:
    Save odm_script.sql file to the default Oracle
    directory i.e. Oracle-Home/bin and Run following command
    through SQL Plus.
    SQL>@Script_Name
    I hope this will resolve ur problem.
    Regards,
    Omer Saeed Khan.

  • Can any one tell me how can i call a shell script from pl/sql

    i like to call shell script from pl/sql procedure.
    can any one suggest how can i do this

    Have you not mastered in asking the same kind of question ?
    First do write a script...
    no one will spoon feed you.
    How can i call a shell script from procedure
    How to call Shell Script from pl/sql block
    -Sk

  • How can i call a shell script from procedure

    I have a shell script.now i am i a situation to call that shell script from one of my procedures and need to get a value from that script.
    can u suggest me that how can a call the shell script from pl/sql?

    Is the same question you asked here
    How to call Shell Script from pl/sql block
    -SK

  • How do you suppress page numbers. I am trying to print a screenplay for the first time since switching to Pages and I can't suppress Page

    How do you suppress page numbers. I am trying to print a screenplay for the first time since switching to Pages and I can't suppress Page #1 without making the rest of the pages inaccurate, as page #1 is the Title Page. Does anyone have any suggestions?

    When you signed to be able to post in the forums, you were urged to read and accept the Terms of Use ruling these forums.
    They claim :
    The contents of the "More Like This" box prove that applying the rules you would have get the wanted explanations without creating this new thread.
    Yvan KOENIG (VALLAURIS, France) mardi 26 avril 2011 10:04:03

  • Can we suppress execution of a query so as to optionally execute queries in data modl

    Can we suppress execution of a query so that we optionally execute queries?0
    I have a combo box in Parameter Form. It has 3 options. I have 3 queries in Data Model.
    I want to execute only one of these 3 queries based on user's selection from combo box.
    I want that other 2 queries do NOT execute at all for that processing cycle. Next time user selects other option and an other query is executed and other 2 are NOT executed and so on.
    Is it possible in Reports 6i in Client/server?
    Pl. guide.
    Tariq

    Include:
    AND :parameter = <this query's value> (e.g. 1 or "SALES" or whatever)
    in each query's where clause. Because this is 2 constants (as far as the SQL interpreter is concerned) it will evaluate it first. If the parameter is set to a value not for this query then it will return no rows with minimal overhead.

  • How can I execute a bash script by double clicking in finder

    Hello!
    How can I execute a bash script using finder? Or better: How can I create an alias, which executes my bash script?
    Thanks Johann

    Add the suffix command in your script name. E.g. Script.command.

Maybe you are looking for

  • Need help in understanding of a certain errormessage

    Hello everybody, I get the following error message: "Kein Speicher der Länge 720 für OCCURS-Bereich verfügbar" ( I assume in English that would be: "No Memory of Lenght 720 for OCCURS-Area available") Can anyone give me a hint what that means and wha

  • Act now if you want to keep your email address

    Have followed all the instructions in the email to keep my talk21 account. Supposed to get an email saying they have my request and if not do it again. Have done it 2 times no and no confirmation. Anyone else got a confirmation that bt have your requ

  • Logic Express 7.2 Installation on Intel Mac

    I've got the latest upgrades installed I think, and tried to install logic on a freshly reinstalled Mac, but always get this error: There was an error, try reinstalling Logic. (or something close to it). It happens during installation of Garage Band

  • Move Mailbox database and Public Folder database from VMwar RDM drive to VMware VMFS/VMDK Drive

    Good Afternoon, So I have 1 DAG with 3 mailbox server (1 physical and 2 Virtual (vmware)).  The Vmware server Mailbox and Public folder databases/logs are currently on RDM drive.  I need to get rid of the RDM drives and use VMFS/Vmdk drives for mailb

  • Performance issue after PT Upgrade.

    Hakan and Team , We recently moved from PT 8.48 TO PT8.51.18 on CRM 8.8 Application. After the upgrade, we tremendously saw big performance issues with PeopleSoft CRM Application. It freezes almost every day and all their work-force (call center repr