I need 2 InDesign scripting. I am willing to pay

I'm under InDesign CC on a Mac. Here's what I need:

1. I need questions that are anchored in a text box [all style d-question] who are currently outside the box margin [not in the flow of the text] to be moved in the right text box at the top of the paragraph they are anchored to. They do not have a paragraph at the end mark, then it should be created for them to land on.

2 I need a space on the right side an exhibitor at numbers/s withdrawn if the figure/s is / are next to the text.

I'll do it in the WE!

Tags: InDesign

Similar Questions

  • Edit an Indesign script for me?

    Hi all!

    I'm fairly new to Indesign scripting and I have a script here that I would have changed.

    This script puts a several page pdf in an Indesign file and add pages as needed. From now this script appears in a dialog box that asks you what document I want than the PDF to be placed in, and I would like to have this dialog box eleminated and have the script automatically place the pdf file in the document I have active. This script also asked which page to start to put the pdf file on and I would if it would simply just start automatically on the first page of the Indesign document active without even asking me. Someone would be willing to make these changes for the script below and zip code on this thread? Let me know if I did something clear.

    var myDocument = app.activeDocument;
    //Get the current page.
    main();
    function main(){
      //Display a standard Open File dialog box.
      var myPDFFile = File.openDialog("Choose a PDF File");
      if((myPDFFile != "")&&(myPDFFile != null)){
      var myDocument, myPage;
      if(app.documents.length != 0){
      var myTemp = myChooseDocument();
      myDocument = myTemp[0];
      myNewDocument = myTemp[1];
      }
      else{
      myDocument = app.documents.add();
      myNewDocument = false;
      }
      if(myNewDocument == false){
      myPage = myChoosePage(myDocument);
      }
      else{
      myPage = myDocument.pages.item(0);
      }
      myPlacePDF(myDocument, myPage, myPDFFile);
      }
    }
    function myChooseDocument(){
        var myDocumentNames = new Array;
        myDocumentNames.push("New Document");
        //Get the names of the documents
        for(var myDocumentCounter = 0;myDocumentCounter < app.documents.length; myDocumentCounter++){
            myDocumentNames.push(app.documents.item(myDocumentCounter).name);
        }
        var myChooseDocumentDialog = app.dialogs.add({name:"Choose a Document", canCancel:false});
        with(myChooseDocumentDialog.dialogColumns.add()){
            with(dialogRows.add()){
                with(dialogColumns.add()){
                    staticTexts.add({staticLabel:"Place PDF in:"});
                }
                with(dialogColumns.add()){
                    var myChooseDocumentDropdown = dropdowns.add({stringList:myDocumentNames, selectedIndex:0});
                }
            }
        }
      var myResult = myChooseDocumentDialog.show();
      if(myResult == true){
      if(myChooseDocumentDropdown.selectedIndex == 0){
      myDocument = app.documents.add();
      myNewDocument = true;
      }
      else{
      myDocument = app.documents.item(myChooseDocumentDropdown.selectedIndex-1);
      myNewDocument = false;
      }
      myChooseDocumentDialog.destroy();
      }
      else{
      myDocument = "";
      myNewDocument = "";
      myChooseDocumentDialog.destroy();
      }
        return [myDocument, myNewDocument];
    }
    function myChoosePage(myDocument){
        var myPageNames = new Array;
        //Get the names of the pages in the document
        for(var myCounter = 0; myCounter < myDocument.pages.length;myCounter++){
            myPageNames.push(myDocument.pages.item(myCounter).name);
        }
        var myChoosePageDialog = app.dialogs.add({name:"Choose a Page", canCancel:false});
        with(myChoosePageDialog.dialogColumns.add()){
            with(dialogRows.add()){
                with(dialogColumns.add()){
                    staticTexts.add({staticLabel:"Place PDF on:"});
                }
                with(dialogColumns.add()){
                    var myChoosePageDropdown = dropdowns.add({stringList:myPageNames, selectedIndex:0});
                }
            }
        }
        myChoosePageDialog.show();
        var myPage = myDocument.pages.item(myChoosePageDropdown.selectedIndex);
        myChoosePageDialog.destroy();
        return myPage;
    }
    function myPlacePDF(myDocument, myPage, myPDFFile){
      var myPDFPage;
      app.pdfPlacePreferences.pdfCrop = PDFCrop.cropMedia;
      var myCounter = 1;
      var myBreak = false;
      while(myBreak == false){
      if(myCounter > 1){
      myPage = myDocument.pages.add(LocationOptions.after, myPage);
      }
      app.pdfPlacePreferences.pageNumber = myCounter;
    
         myPDFPage = myPage.place(File(myPDFFile), [0,0])[0];
      if(myCounter == 1){
      var myFirstPage = myPDFPage.pdfAttributes.pageNumber;
      }
      else{
      if(myPDFPage.pdfAttributes.pageNumber == myFirstPage){
      myPage.remove();
      myBreak = true;
      }
      }
      myCounter = myCounter + 1;
      }
    }
    var myPDFFrame =  myPlacePDF.parent;
    

    Thank you very much in advance for your help! I greatly appreciate it!

    This is a rewrite for you. I also added some code to remove empty pages in the document.

    /*

    PlaceMulitpagePDF condensed by Skemicle Script

    */

    If (parseFloat (app.version)<>

    main();

    on the other

    app.doScript (principal, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.ENTIRE_SCRIPT, "Place Multipage PDF");

    main() {} function

    var myPDFFile is File.openDialog ("choose a PDF file");.

    If ((myPDFFile! = "") & (myPDFFile!) (= null)) {}

    var = app.activeDocument myDocument,

    myPage = myDocument.pages.item (0);

    var myPDFPage;

    app.pdfPlacePreferences.pdfCrop = PDFCrop.cropMedia;

    var myCounter = 1;

    var myBreak = false;

    while(myBreak == false) {}

    If (myCounter > 1) {}

    my page = myDocument.pages.add (LocationOptions.after, myPage);

    }

    app.pdfPlacePreferences.pageNumber = myCounter;

    myPDFPage = myPage.place (File (myPDFFile), [0,0]) [0];

    if(MyCounter == 1) {}

    New var features = myPDFPage.pdfAttributes.pageNumber;

    } else {}

    if(myPDFPage.pdfAttributes.PageNumber == myFirstPage) {}

    myPage.remove ();

    myBreak = true;

    }

    } myCounter = myCounter + 1;

    }

    } var pages = app.activeDocument.pages;

    for (c = 0; c<>

    If (pages.pageItems.length [c] == 0) {}

    pages [c]. Remove();

    }

    }

    }

  • Need help with script java folder level for silent registration with unique file name

    That's what I'm trying to do

    1. when a person completes the request on one of our computers in the office, there will be a button send at the bottom of the application.

    2 submit the application on is automatically stored on the local server with the file name determined by the fields name and surname on the application.

    example - John Doe Application.pdf

    Saved in the folder C:\Users\Station1\Desktop\FinishedApplication.jpgApplications

    3. This is the example of code I found, but I don't know how to enter which fields determine save name and where to save it to.

    http://thelivecycle.blogspot.de/2015/06/save-with-new-name-in-specified.html

    http://thelivecycle.blogspot.de/2015/06/save-with-new-name-in-specified.html http://thelivecycle.blogspot.com/2009/11/save-form-to-specific-directories-and.html

    Thank you!

    Lol this is the part that you need as a script to the folder level:

    var lcbSaveAs = app.trustedFunction (function (vDoc, vPath) {}

    app.beginPriv ();

    vDoc.saveAs ({cPath: vPath});

    app.endPriv ();

    });

    This is the code you use in your file:

    lcbSaveAs (, "/ C/users/specialisee1/Desktop/result /" + this.getField("FirstName").valueAsString + "" + this.getField("LastName").valueAsString + "Application.pdf");

    lcbSaveAs is the name of the function of trust.

    vDoc.saveAs is the Document object, call the saveAs method.

    I don't know what oDoc.SaveAs is, or where you got it.

  • InDesign Scripting - increase of height of 1 mm

    Hello

    I'm still new to indesign scripting and have struggled to find an answer.

    I have an empty rectangle frames page, all different sizes.

    Is there a way I could select all images, run a script 'enlarge' via a keyboard shortcut, and all the boxes will increase by 2mm X + Y in the center of the frame.

    Example - Frame w: 63mm frame h: 87.3 mm

    < run Script - width = width + 2mm, height is height + 2mm >

    < result >

    Frame w: 65mm h frame: 89.3 mm (from the Center)

    < image >

    Repeat the <>

    I'd appreciate any help I can get on this issue

    Thank you!

    Indiscripts: Equalizer 3 BETA new features

  • How to change type of police using InDesign scripting (Javascript)?

    Hello

    I need to change the font type of a document, InDesign using InDesign script (javascript). I found a few online references in the InDesign scripting guide and running extract next, gives me errors.

    Delete existing preferences

    app.changeTextPreferences = NothingEnum.nothing;

    app.findTextPreferences = NothingEnum.nothing;

    app.findChangeTextOptions.caseSensitive = false;

    app.changeTextPreferences.appliedFont = app.fonts.item ("DEVANAGARI MT");

    App.Documents.Item (0) .changeText ();

    Download the msg of InDesign server.

    Error code: 1

    Error description: changeText

    The indesign file that is used to change the font is certainly not corrupt, cause the following script to export the file in .png works very well. Any help appreciated.

    app.pngExportPreferences.exportResolution = 100.0;

    App.Documents.Item (0) .exportFile (ExportFormat.PNG_FORMAT, PreviewDocument don't);

    Hello

    Try this 1-liner:

    app.documents.item(0).stories.everyItem().appliedFont = app.fonts.item("DEVANAGARI MT");
    

    Guess above specified police is available. Some disorders may begin with the name of the font, cause not always WYSIWYG.

    To be sure how to refer to a specific font by its name - a console text and notice of runing ESTK select this option:

    app.selection[0].appliedFont.name
    

    Jarek

  • Canvas support in Indesign scripts?

    Hello

    short version:

    I was wondering if it is possible in any way to include automatically generated content (Using canvas api for example) raster design using JavaScript?

    Long version:

    I noticed that the In-design supports a very old version of JavaScript, and since I'm pretty new to InDesign scripting, I thought, it's best to inquire about its capabilities / limitations before planing on what to do with it! I wrote a Javascript (not in in-design script) code which generates unique random patterns of patterns, now, I'm interested if I can integrate it into scripts in design so she would put one of these raster images in each page of a design document (IE: left and right of each face relatively pages);

    also since my first guess after reviewing documentation of object a little design model has been that it is very limited to what is possible via the user interface software (and not everything/something new/more), so I was wondering (in this case), how is it possible to connect a script for an external script and send and receive the data/vars between them; like putting the two scripts in the same folder, one calls the other is giving some info (size of the document, etc.), the second script runs (outside of ID), put the images on the disk and return to the main script when's done it! :/

    I have a few other sketches of solution as well in my mind, but wanted to get your opinion before doing anything ridiculous! :-)))

    I really appreciate your in - put on this point.

    THX, mim,

    And Yes! It seems that I can run an external file of any type!

    After reading and looking for some time, finally:

    In the page 52nd documentation, it says:

    Execute()
    fileObj.execute)
    Open this file using the appropriate application, as if she had been double-clicked in a file Explorer. You can use this method to run scripts, launch applications and so on

    Voila! Exactly what I need (if what I think I need is actually what I need! indeed!)

    I'll try to see if it works later (actually impatient!) and thx again!

    mim

  • Need a batch script automate "Crop &amp; straighten.

    So, I have a few hundred image files which consist of 3 or 4 scanned photos, also called 'gang' scanned. The ability "Crop & straighten" Photoshop (located under the folder-> controller) is great... But I want to be abe to run a script that will ask me for a file to be processed and then run culture & straighten it on all the pictures, so that their savings to another folder called "Édition" or something.  I found a script in the forums for this exact purpose, but it doesn't seem to work in CS5.  I ran it several times, it creates the folder "Edited", but nothing is inside. The script that I found is shown below. Any ideas? I would really appreciate the help!

    #target Photoshop
    app.bringToFront;
    var inFolder = Folder.selectDialog("Please select folder to process");
    if(inFolder != null){
    var fileList = inFolder.getFiles(/\.(jpg|tif|psd|)$/i);
    var outfolder = new Folder(decodeURI(inFolder) + "/Edited");
    if (outfolder.exists == false) outfolder.create();
    for(var a = 0 ;a < fileList.length; a++){
    if(fileList[a] instanceof File){
    var doc= open(fileList[a]);
    doc.flatten();
    var docname = fileList[a].name.slice(0,-4);
    CropStraighten();
    doc.close(SaveOptions.DONOTSAVECHANGES);
    var count = 1;
    while(app.documents.length){
    var saveFile = new File(decodeURI(outfolder) + "/" + docname +"#"+ zeroPad(count,3) + ".jpg");
    SaveJPEG(saveFile, 12);
    activeDocument.close(SaveOptions.DONOTSAVECHANGES) ;
    count++;
      }
    }
    }
    };
    function CropStraighten() {
    executeAction( stringIDToTypeID('CropPhotosAuto0001'), undefined, DialogModes.NO );
    };
    function SaveJPEG(saveFile, jpegQuality){
    jpgSaveOptions = new JPEGSaveOptions();
    jpgSaveOptions.embedColorProfile = true;
    jpgSaveOptions.formatOptions = FormatOptions.STANDARDBASELINE;
    jpgSaveOptions.matte = MatteType.NONE;
    jpgSaveOptions.quality = jpegQuality;
    activeDocument.saveAs(saveFile, jpgSaveOptions, true,Extension.LOWERCASE);
    }
    function zeroPad(n, s) {
    n = n.toString();
    while (n.length < s) n = '0' + n;
    return n;
    };

    The script finds only files jpg, tif or psd, if your files are differenent format this format would need to add to the script.

    It could also be a problem with the editor allows you to save the script, some programs will add control characters and stop the operation of the script.

    It is best to use the ExtendScript Toolkit, as is the program installed with Photoshop for editing/testing scripts.

  • Registering InDesign Script ID/name pair

    Hello

    I try to record some InDesign Script ID/name pair, but it doesn't seem to work.

    These are my pairs:

    TFSS, Suite TabFlow
    TFob, object of the object TabFlow
    TFut, event table update
    TFuj, event do update of jobs
    TFop, object from the TabFlow property
    TFts, model for the table Propetry slug
    Patiaudrey, updateJob-ID parameter

    If I submit that I return to the site. There are 4 confused red symbols showing, but not a message of error or something like that. You can see in the attached priontscreen.

    I want to see the pairs already registered, the site is empty.

    What coud be wrong?

    Thank you

    Hans

    My first guess would be the "-" in udateJob-ID.

    So please revisit the naming conventions.

    -Have a look at docs/references/scripting-dom-applescript-idr60.html for examples, AS linking is closer to the natural formatting.

    -capitalization is generally left for the engine, with the exception of acronyms, for example 'suite of XML '.

    -for identifiers JS, caps indicate spaces in the original name

    -your starting names with generic types such as 'Suite', 'Object' will lead to confusion. Omit those who, with the exception of the suite where you make a suffix (put behind the name). for example 'suite of interactive elements '.

    -This TabFlow object looks like a singleton or a preference. I would call it "option TabFlow" or "TabFlow preferably" instead, depends on the question of whether it is persistent.

    -the name of the corresponding property is the plural form. See, for example

    This AppleScript DOM Qouting: (I hate this wysiwyg forum editor!)

    script preferences (property kScriptPrefsPropertyScriptElement)

    ScriptID= 'DCPDH', name = 'script preferences '.<--- the="" property="">

    Description = preferences. Script, Plugin = Scripting.InDesignPlugin
    Data type = "script of preference"<---- the="" class="">


    Finally, what makes you choose the "do" in "do update... "for the unique event, then omit it for each other?

    Have fun

    Dirk

  • I have Firefox 8.0.1 and since the update to it, some sites, I need to go so that Firefox will not accept certificates which is accepted in the previous version. I can not get the permanent exception and must uncheck permanent and do every time.

    I have Firefox 8.0.1 and since the update to it, some sites, I need to go so that Firefox will not accept certificates which is accepted in the previous version. I can not get the permanent exception and must uncheck permanent

    You can use this button to go to the Firefox profile folder:

    • Help > troubleshooting information > profile directory: opens showing the file

    It is not usually necessary to create an exception for the certificates.

    Possible causes are that a server does not send the full (intermediate) certificate chain or self signed certificates.

  • Need for Speed Hot Pursuit 2 will work with Windows 7?

    Need for Speed Hot Pursuit 2 will work with Windows 7?

    Click on the following link for the game compatibility in the Windows 7 operating system.

    http://www.Microsoft.com/Windows/compatibility/en-us/default.aspx

  • My HP6500 wireless printer does not work. get the message that my network not recognize my printer and need to start OneNote before it will work

    My HP6500 wireless printer was working well until 2 days ago.  Now, I get a message that my network does not recognize my printer.  I also have a message that says I need to run OneNote before it will work.  any suggestions on where to start

    Hello

    1 have had any changes made on the computer before the show?

    2. What is the full and exact error message?

    Method 1:

    I suggest review the links and try to run the troubleshooter and check if it helps.

    Printer in Windows problems

    http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows

    Method 2:

    Check out the links and check if that helps:

    Network and wireless printing problems

    http://h20000.www2.HP.com/bizsupport/TechSupport/SupportTaskIndex.jsp?lang=en&cc=us&TaskID=110&prodSeriesId=3795309&prodTypeId=18972&supportTaskId=42468

    Solve a problem

    http://h20000.www2.HP.com/bizsupport/TechSupport/SupportTaskIndex.jsp?lang=en&cc=us&TaskID=110&prodClassId=-1&prodTypeId=18972&prodSeriesId=3795309

    Let us know if it helps.

  • Hi, I have an older iMac with Intel duo core 2.16 GHZ, 250 GB HD, 2 GB of SDRAM and Mac 10.6.8. I want to spend 10.7 and I need to know if my CS6 will have some problems I'll be able to downgrade to 10.6.8? Thank you

    Hi, I have an older iMac with Intel duo core 2.16 GHZ, 250 GB HD, 2 GB of SDRAM and Mac 10.6.8. I want to spend 10.7 and I need to know if my CS6 will have some problems I'll be able to downgrade to 10.6.8? Thank you

    You need to ask questions of an operating system on an Apple forum

  • Download the trial version of InDesign.  How long will it take usually?

    Hello.  I'm trying to download the trial version of InDesign.  How long will it take usually?  Thanks in advance

    Hi Carlos,

    For that software, it should be less then that.

    Thank you

    Yann Arora

  • How to pass the content of an xml element in the text frame in inDesign Script

    var XMLFile = File.openDialog ("select XML Files... ») ;

    var doc = app.activeDocument;

    If (!) App.Documents.Length)

    {alert ("ERROR: Document not opened");}

    return;

    }

    doc.importXML (XMLFile);

    var firstFigureNode = doc.xmlElements [0] .xmlElements [1] .xmlElements [0];

    var lableNode = firstFigureNode.xmlElements [0];

    var lableNodeText = lableNode.contents;

    myFrame var = doc.textFrames.add ({geometricBounds: [-13, 13, 3, -3]});

    lableNodeText.move (LocationOptions.AFTER, myFrame.texts [0]);

    ========================================================

    My requirement is: == > > move the content of an xml element in the text by inDesign Script block, but XML InDesign file Structure should not be change & data in the XML Structure should remain as it was before...

    I tried to code above, but it does not work...

    Please can someone help me in solving this problem...

    It does not work correctly...

    It moves firstFigureNode in myFrame...

    firstFigureNode.placeXML (myFrame);

    ===>> For Apple Script try below Code ===>>

    myFrame markup using firstFigureNode

  • Hi all, I need to understand why my VMs will always grow so big they eventually run out of disk space, and then I can't resize them...

    Hi all, I need to understand why my VMs will always grow so large they finally running out of disk space, and then I can't resize them... see the screenshots below:

    Screen Shot 2014-08-26 at 12.16.56 AM.png

    So all my virtual machines are that looks like it's finally the 5 GB goes down to zero, cannot update things like Dropbox and all sorts of other things start to break. I then, go here and try to expand, but I get this error on machines to young readers:

    Screen Shot 2014-08-26 at 12.18.02 AM.png

    I think I need at least as much GBs on the system, as is the virtual machine? Done my MBA and smaller machines, is not possible. But when I move the virtual machine to a bigger machine like my iMac, with a big disc of TB, I can do the resizing. Is it the way it is supposed to work? Perhaps, I do not have this right...

    thx for all the advice!

    Yep, that's the way it is supposed to work.  The close, move it to the iMac, expand drive, then arrest him and bring him back.  Make sure you choose "move" not "copy" when migrating to avoid triggering the activation of windows.

    Regarding what is eating space inside the virtual machine, you will have to consider for the guest OS for more information (which are not a matter of merger).

    To free up space on the host, with closing VM, go to settings, click on the circle of little tiny refreshment next to the space bar, then if she said cleaning recommended, go into general and make a clean virtual machine.

Maybe you are looking for