Script that export two separate PDF files of paper with two pages AND change the name of the file, the number two of the PDF

OBS: Script InDesign CS3:

I have a document with two pages but a file name!

I need a script which

1 export the two pages in format PDF separated two - so NOT a single PDF file with two pages but two PDF files

2. the first PDF file must have the same name as the document - for example .indd13ESW110020216TC0-> ESW110020216TC013.pdf

3. the second PDF file will be added to the last number - so .indd14ESW110020216TC0-> ESW110020216TC014.pdf

Is it possible to integrate this script:

var doc = app.activeDocument;  
var _PDFfile = new File('\\\\testserver\\' + app.activeDocument.name.replace (/\.indd$/, '.pdf'));  
  
var _PDFExportPreset = app.pdfExportPresets.item('MyPdfSetting');   
if (_PDFExportPreset == null){  
   alert('PDF Export Presets not found');  
   exit();  
    }    
    app.pdfExportPreferences.pageRange = PageRange.ALL_PAGES;                      
    doc.exportFile(ExportFormat.pdfType, _PDFfile, false,_PDFExportPreset);  

Hello

Try this...

Tags: InDesign

Similar Questions

  • I have a script that ended up saving a file under a new name whenever I generate the script.

    I have a script that ended up saving a file under a new name whenever I generate the script on the same image.

    Moving to Scripting Photoshop

  • Help with excel import and delete the page script

    Hello. I will try to make it as simple as possible. I have some data from excel (saved as delimited by tabs) that I need to import in a 5 PDF page. I use the script below to import, and it works fine. All import fields and records the individual (one for each record) PDF. However, I need to extend this functionality by removing some pages before it saves the document by looking at the different boxes. The code below is what I use to import the records.

    // specify the filename of the data file
    var fileName = "/Users/MacMike/Desktop/Test.txt";  // the tab delimited text file containing the data
    var outputDir = "/Users/MacMike/Desktop/Dump/";    // make sure this ends with a '/'
    
    var err = 0;
    var idx = 0;
    while (err == 0) {
        err = this.importTextData(fileName, idx);    // imports the next record
    
        if (err == -1)
            app.alert("Error: Cannot Open File");
        else if (err == -2) 
            app.alert("Error: Cannot Load Data");
        else if (err == 1)
            app.alert("Warning: Missing Data");
        else if (err == 2)
            app.alert("Warning: User Cancelled Row Select");
        else if (err == 3)
            app.alert("Warning: User Cancelled File Select");
        else if (err == 0) {
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf"); // saves the file
            idx++;
        }
    }
    

    As I said before you import works surprisingly well.

    My PDF consists of 5 pages (info-registration, p1 = Dir-contract = p0, p2 = contract ndarp-brand, p3 = takes-contract, p4 = agreement must be brand). My idea is that on the import of data, the script will look at a few check boxes and determine which contracts to remove on the PDF and then save. I wrote the syntax of which, in my view, what it should look like. I'm not a programmer and know just a little bit. I looked through the documentation and this is what I came with. I don't know how to combine to work. Here's the code I came up with that.

    var dir = this.getField("Associate Director"); // checkbox
    var aldir = this.getField("Alumni Director"); // checkbox
    
    var fac = this.getField("Facilitator"); // checkbox
    var alfac = this.getField("Alumni Facilitator"); // checkbox
    
    var oyb = this.getField("Optimize Your Brain"); //checkbox
    var poyb = this.getField("DVD and Workbook Previously Purchased"); // checkbox
    
    // Below are all the possible training options.
    if (dir.value=="Checked" || aldir.value=="" || fac.value=="" || alfac.value=="" || oyb.value=="" || poyb.value=="") {
        this.deletePages({nStart:3, nEnd:4})
    }
    else if (dir.value=="" || aldir.value=="Checked" || fac.value=="" || alfac.value=="" || oyb.value=="" || poyb.value=="") {
        this.deletePages({nStart:3, nEnd:4})
    }
    
    else if (dir.value=="" || aldir.value=="" || fac.value=="Checked" || alfac.value=="" || oyb.value=="" || poyb.value=="") {
        this.deletePages({nStart:2, nEnd:4})
    }
    else if (dir.value=="" || aldir.value=="" || fac.value=="" || alfac.value=="Checked" || oyb.value=="" || poyb.value=="") {
        this.deletePages({nStart:2, nEnd:4})
    }
    
    else if (dir.value=="" || aldir.value=="" || fac.value=="Checked" || alfac.value=="" || oyb.value=="Checked" || poyb.value=="") {
        this.deletePages({nStart:2, nEnd:2})
    }
    else if (dir.value=="" || aldir.value=="" || fac.value=="" || alfac.value=="Checked" || oyb.value=="Checked" || poyb.value=="") {
        this.deletePages({nStart:2, nEnd:2})
    }
    else if (dir.value=="" || aldir.value=="" || fac.value=="Checked" || alfac.value=="" || oyb.value=="" || poyb.value=="Checked") {
        this.deletePages({nStart:2, nEnd:2})
    }
    else if (dir.value=="" || aldir.value=="" || fac.value=="" || alfac.value=="Checked" || oyb.value=="" || poyb.value=="Checked") {
        this.deletePages({nStart:2, nEnd:2})
    }
    
    else if (dir.value=="Checked" || aldir.value=="" || fac.value=="" || alfac.value=="" || oyb.value=="Checked" || poyb.value=="") {
        this.deletePages(none) // I realize this is incorrect. Just showing that this option results in no deleted pages.
    }
    else if (dir.value=="" || aldir.value=="Checked" || fac.value=="" || alfac.value=="" || oyb.value=="Checked" || poyb.value=="") {
        this.deletePages(none) // I realize this is incorrect. Just showing that this option results in no deleted pages.
    }
    else if (dir.value=="Checked" || aldir.value=="" || fac.value=="" || alfac.value=="" || oyb.value=="" || poyb.value=="Checked") {
        this.deletePages(none) // I realize this is incorrect. Just showing that this option results in no deleted pages.
    }
    else if (dir.value=="" || aldir.value=="Checked" || fac.value=="" || alfac.value=="" || oyb.value=="" || poyb.value=="Checked") {
        this.deletePages(none) // I realize this is incorrect. Just showing that this option results in no deleted pages.
    }
    
    else if (dir.value=="" || aldir.value=="" || fac.value=="" || alfac.value=="" || oyb.value=="Checked" || poyb.value=="") {
        this.deletePages({nStart:1, nEnd:2})
    }
    else (dir.value=="" || aldir.value=="" || fac.value=="" || alfac.value=="" || oyb.value=="" || poyb.value=="Checked") {
        this.deletePages({nStart:1, nEnd:2})
    }
    

    How to combine these two so that I can create a document temp import my data, check the boxes to check off and delete the appropriate pages and save the file and then go to the next record? I got the first part done. It imports large and has the right, but I don't know what to do next. Thanks for any help!

    Or y at - it another way to do this?


    Michael

    Wow. Ok. I had it works beautifully. There was a lot of trial and error. Because the script as it was would have, would open the original PDF, delete the pages needed, then save the file. While it would be to go to the next record is missing pages in PDF and bomb to open. I hunted and searched for a way to do this. I found "this.insertPages" in the documentation. Finally, what worked was so move the "save under" in the service and put it under every variation of check. So now when checking the boxes, he performs the check, removes the mandatory pages, stops, insertions of back in deleted pages from the original file, leave the service and finally goes to the next record.

    Here is my final script:

    // This code looks at an excel (tab delimited) file, imports the records into a PDF form 10 Pages long.
    // Then checks a series of checkboxes and deletes the pages that aren't associated with first page.
    // After it deletes these pages it reinserts the deleted pages so it can do the checks for the next record in the (tab delimited) file.
    
    // variables for importing excel data
    var err = 0;
    var idx = 0;
    var fileName = "/Users/MacMike/Desktop/Test.txt";  // the tab delimited text
    var outputDir = "/Users/MacMike/Desktop/Dump/";    // make sure this ends with a '/'
    
    //Checking a bank of 6 checkboxes and determine which pages need to be deleted, save the file, and the insearch the deleted pages again.
    function seekandDestroy() {
        if (dir.value=="Checked" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Off") {
            this.deletePages({nStart:6, nEnd:9})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:5, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:6, nEnd:9 });
        }
        else if (dir.value=="Off" && aldir.value=="Checked" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Off") {
            this.deletePages({nStart:6, nEnd:9})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:5, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:6, nEnd:9 });
        }
    
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Checked" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Off") {
            this.deletePages({nStart:3, nEnd:9})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:9 });
        }
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Checked" && oyb.value=="Off" && poyb.value=="Off") {
            this.deletePages({nStart:3, nEnd:9})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:9 });
        }
    
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Checked" && alfac.value=="Off" && oyb.value=="Checked" && poyb.value=="Off") {
            this.deletePages({nStart:3, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:5 });
        }
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Checked" && oyb.value=="Checked" && poyb.value=="Off") {
            this.deletePages({nStart:3, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:5 });
        }
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Checked" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Checked") {
            this.deletePages({nStart:3, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:5 });
        }
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Checked" && oyb.value=="Off" && poyb.value=="Checked") {
            this.deletePages({nStart:3, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:2, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:3, nEnd:5 });
        }
    
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Checked" && poyb.value=="Off") {
            this.deletePages({nStart:1, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:0, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:1, nEnd:5 });
        }
        else if (dir.value=="Off" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Checked") {
            this.deletePages({nStart:1, nEnd:5})
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
            this.insertPages({nPage:0, cPath:"/Users/MacMike/Desktop/TT Reg & Contracts.pdf", nStart:1, nEnd:5 });
        }
        else if (dir.value=="Checked" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Checked" && poyb.value=="Off") {
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
        }
        else if (dir.value=="Checked" && aldir.value=="Off" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Checked") {
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
        }
        else if (dir.value=="Off" && aldir.value=="Checked" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Checked" && poyb.value=="Off") {
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
        }
        else if (dir.value=="Off" && aldir.value=="Checked" && fac.value=="Off" && alfac.value=="Off" && oyb.value=="Off" && poyb.value=="Checked") {
            this.saveAs(outputDir + this.getField("Full Name (First Last)").value + "-" + this.getField("Event Title").value + ".pdf")
        }
    }
    
    // Imports records does the above function then go the next record, all the while doing error reporting.
    while (err == 0) {
        err = this.importTextData(fileName, idx);    // imports the next record
    
        if (err == -1)
            app.alert("Error: Cannot Open File");
        else if (err == -2)
            app.alert("Error: Cannot Load Data");
        else if (err == 1)
            app.alert("Warning: Missing Data");
        else if (err == 2)
            app.alert("Warning: User Cancelled Row Select");
        else if (err == 3)
            app.alert("Warning: User Cancelled File Select");
        else if (err == 0) {
            var dir = this.getField("Associate Director"); // checkbox
            var aldir = this.getField("Alumni Associate Director"); // checkbox
            var fac = this.getField("Facilitator"); // checkbox
            var alfac = this.getField("Alumni Facilitator"); // checkbox
            var oyb = this.getField("Optimize Your Brain Site Coordinator"); //checkbox
            var poyb = this.getField("DVD and Workbook Previously Purchased"); // checkbox
            seekandDestroy(dir, aldir, fac, alfac, oyb, poyb); //performs the above function
            idx++; //goes to next record
        }
    }
    
  • is it possible to tell me how I can make program in labview that take black and with image pixels and give the coordinates of black or white pixels again to me.

    Hello everyone

    is it possible to tell me how I can make program in labview that take black and with image pixels and give the coordinates of black or white pixels again to me.

    It depends on the image and the module LabVIEW available to you. LabVIEW can open bitmap and png files and convert them into tables: if it's really a monochromatic (depth of 1 bit) you get a table 2D boolean, T for white, F for black. Just look at the index of the item to its details (don't forget that LabVIEW does not use the order of rows and columns, so you must transpose and reflect the table). If you have a 24 bit bitmap, the table will contain the color in hexadecimal synthesis (000000 for black, FFFFFF is white and so on); Yet once, you simply check if the element of the array correspond to your requirements and get its index.

    With the vision that you module con open other pictures and perform advanced on them without convert them into tables. Anyway, you can just type the extension of your image using LabVIEW and see what you get.

    Here is a code snippet to open a monochromatic image

  • I get videos from cell phones of the people with a type of file like 3GP. I need to know how to save and change the format so I can open them.

    I get videos from cell phones of the people with a type of file like 3GP. I need to know how to save and change the format so I can open them.

    Trying to convert to the. WMV format:

    There are many converters available on the net... some
    free... some detail.

    The following freeware converter is just one example:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory (freeware)
    http://www.videohelp.com/tools/Format_Factory
    (the 'direct link' is faster download)
    (the file you want to download is: > FFSetup295.zip<>
    (FWIW... installation..., you can uncheck
    ('all' boxes on the final screens)
    (Windows XP / Vista / 7)

    First, you will need to decompress the file or just open the
    Drag > FFSetup295.exe< out="" of="" the="">
    and drop it on your desktop. To install left click.

    Next, after the download and installation of Format
    Factory... you can open the program and
    left click on the toolbar, the "Option" button and
    "Select an output folder to" / apply / OK.
    (this is where you find your files after they)
    are converted)

    Drag and drop your video clips on the main screen...

    Select "all to WMV" / OK...

    Click on... Beginning... in the toolbar...

    That should do it...

    Good luck...

  • Hello, I want to make an outline of the text that I created.  I started with a blue background.  Then, I created a text and changed the color of gold.  I then put on an image and used the clipping mask to show the image by the text. Problem

    Hello, I want to make an outline of the text that I created.  I started with a blue background.  Then, I created a text and changed the color of gold.  I then put on an image and used the clipping mask to show the image by the text. Problem is it gets rid of color and shows that the peak through the text.  I wanted a draft of the text with the picture.  Is this possible?

    Thank you

    Peter

    You're welcome, Peter.

  • Since the update of my pc based system with 10 windows and install the last Prime Minister CC when I drag a clip on the timeline audio does not come with it. I can hear audio playback in the preview window of small file so the audio is there, but it's not

    Since the update of my pc based system with 10 windows and install the last Prime Minister CC when I drag a clip on the timeline audio does not come with it. I can hear audio playback in the preview window of small file so the audio is there, but it does not appear or play on the timeline. I can drag an audio file of Ms on the timeline, but I need audio from my original file to synchronize my audio file recorded independently - used to be no problem... any ideas what I can not edit now?

    Hi Neil,

    Drag / drop may not work if you don't have any enabl; e source patch or did not target the track for the same thing.

    https://helpx.Adobe.com/Premiere-Pro/using/source-patching-track-targetting.html

    Vinay

  • How can I autorun script that will process an XML file at the opening?

    I use image 11. I have a saved script that looks for the event Constants.FA_Note_PostOpenXML notification. When this event is raised, the script is supposed to examine the root element (so I change only the appropriate XML files), then make some changes to the file. Specifically, I want to be able to delete empty pages, remove the room for the heads side and correct table formatting (for example the left indent, whereby I can not directly access, apparently, in the rules of the EDD or R/W). The code snippet that starts to do the following work:


    Notification (constants.FA_Note_PostOpenXML, true);

    function {Notify (note, object, sparam, etriqu)

    switch (note) {}

    case Constants.FA_Note_PostOpenXML:

    doTheWork();

    break;

    }

    }

    function doTheWork() {}

    var doc, flow, root, elemName, mPageAttrib, topicElem, topicElemName, allAttribs;

    doc = app. ActiveDoc;

    flow = doc. MainFlowInDoc;

    root = flow. HighestLevelElement; will always get something although unstructured document

    While (root. ObjectValid()) {//only do something for structured documents

    elemName = getElementName (root);

    .. more code to do things...

    }

    }

    I check then the element name root, and if it matches, I make a few changes. This code works fine when operating manually. But, when it is run as a recorded script, the app. ActiveDoc object is invalid, and there is no structure to edit. (I added the line if(!doc.) debug ObjectValid()) {alert ("invalid");} that is not included above.) It seems that the Constants.FA_Note_PostOpenXML event fires whenever the XML file opens, but BEFORE frame bed actually.

    Does anyone have recommendations on how to get around this? Is there something else I could use instead of Constants.FA_Note_PostOpenXML? Is there another way to manipulate an XML file automatically when loading?

    Thanks in advance

    The notification event receives four settings: note, object, sparam and etriqu. For the event that you are using, the object must be the subject of document of the FrameMaker document being opened. Then, you should be able to use this:

    doTheWork(object);
    

    Make sure that you update your doTheWork function to receive the Doc object:

    function doTheWork(doc) {
        var flow, root, elemName, mPageAttrib, topicElem, topicElemName, allAttribs;
        flow = doc.MainFlowInDoc;
        root = flow.HighestLevelElement; // will always get something even if unstructured document
        while(root.ObjectValid()) { //only do something for structured docs
            elemName = getElementName(root);
            ...more code to do stuff....
        }
    }
    

    -Rick

  • Now that I have updated to Firefox, I get TWO tabs that come up... one is my normal start page and the second is the "Welcome to Firefox" page that doesn't seem to go away. I have to go back to Internet Explorer?

    As I said in my question, why the Welcome to Firefox keep opening in addition to my normal start page. It started when I upgraded my Firefox and it IS PRETTY BORING! Also I am not able to erase the history or the restoration of previous session.

    Hi mjp80538,

    You should look at this article on this specific issue and Preferences not savedarticle. It should give you all the information you need!

    If this does not work:

    1. Enter about: config in the address bar
    2. Click I'll be careful, I promise you if prompted
    3. In the filter field, type Startup
    4. Double click on startup.homepage_override_url
    5. Delete the text string, and then click OK
    6. Close Firefox and reopen the window to check that it worked.

    Hope this helps!

  • Text find and change the problem CS3 and CS4 scripts

    I use the script below to find text and turn them into others.

    There is one thing the script can't do it for me.

    Example:


    (g) management

    (1) that no law that is adopted in the Cayman Islands, a tax to collect profits, income, gains or satisfaction does apply to the company or its activities; and

    (2) that the above-mentioned tax or any tax in the form of rights of succession or inheritance tax is payable in respect of shares, debentures or other obligations of the company.

    Example: (end)

    I had a lot of subjects or points in the passage. And I want to change the space between '(g)' and 'Management' in a tab character. So I revised the plain text file 1texte.

    PS: 1text.txt is filled with what to change.

    text {findWhat: "^ p(^?)" ' "} {changeTo: "^ p(^?)"} ^ t "} {includeMasterPages:true, includeHiddenLayers:true, includeFootnotes:true, wholeWord:false} search all space-dash-space and replace it with an en dash."

    The result is:

    (^?) ^ tManagement

    (^?) ^ tthat any law that is passed in the Cayman Islands, imposing a tax on profits, income, not capital gains or satisfaction applies to the company or its activities. and

    (^?) ^ tthat the above-mentioned tax or any tax in the form of rights of succession or inheritance tax is payable in respect of shares, debentures or other obligations of the company.

    PS: ^ t is a tab character.

    result (END)

    This is not what I want.

    It should be"(g) ^ tManagement'.

    PS: ^ t is a tab character.

    Please someboady help me out revised the script below to change the text in what I want. Thank you very much.

    Here's the script.

    FindChangeByList.jsx
    An InDesign CS4 JavaScript
    /*
    @@BUILDINFO @ "FindChangeByList.jsx" 2.0.0.0 January 10, 2008
    */
    Loads a series of strings delimited by tab characters from a text file, and then executes a series
    Find/replace operations based on the lines read from the file.
    //
    The data file is delimited by tabs, returns to cart that separates records.
    //
    The format of each record in the file is:
    findType < tab > findProperties < tab > changeProperties < tab > findChangeOptions < tab > description
    //
    Where:
    < tab > is a tab character
    findType is 'text', 'grep' or 'glyph' (this sets the find/replace operation type to use).
    findProperties is a recording of properties (text) search preferences.
    changeProperties is a recording of properties (text) of the change preferences.
    findChangeOptions is a recording of properties (text) of the options find/replace.
    Description is a description of the search/replace operation
    //
    Very simple example:
    text {findWhat: "-"} {changeTo: "^ _"} {includeMasterPages:true, includeHiddenLayers:true, includeFootnotes:true, wholeWord:false} find all double hyphens and replace by an em dash.
    //
    More complex example:
    text {findWhat: ' ^ 9 ^ 9.} {' ^ 9 ^ 9 '} {appliedCharacterStyle: 'price'} {include notes: true, include master pages: true include hidden layers: true, any word: false} find $ 10.00 to $ 99.99 and apply the character style 'price '.
    //
    All metacharacters search InDesign are allowed in the properties 'findWhat' and 'changeTo"findTextPreferences and changeTextPreferences.
    //
    If you enter the backslashes in the object findGrepPreferences findWhat property, they must be "escaped".
    as shown in the example below:
    //
    {"findWhat: '"\\s+ "}
    //
    To learn more about InDesign scripting, go to http://www.adobe.com/products/indesign/scripting/index.html
    or visit the InDesign Scripting user to http://www.adobeforums.com users forum
    //
    main();
    main() {} function
    var myObject;
    Ensure that the interaction of the user (dialog boxes display, etc.) is turned on.
    app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;
    If (app.documents.length > 0) {}
    If (app.selection.length > 0) {}
    {Switch(App.Selection[0].constructor.) Name)}
    case 'PointInsertion ':
    'character ': case
    case "word":
    case 'TextStyleRange ':
    case "line":
    stops of the "Point":
    case "TextColumn":
    case 'text ':
    case "cell":
    case "column":
    case 'Row ':
    case 'Table ':
    myDisplayDialog();
    break;
    by default:
    An option has been selected, but it was not a text object, so look for in the document.
    myFindChangeByList (app.documents.item (0));
    }
    }
    else {}
    Nothing has been selected, then just search for the document.
    myFindChangeByList (app.documents.item (0));
    }
    }
    else {}
    Alert ("no document is open. Please open a document and try again. ») ;
    }
    }
    function myDisplayDialog() {}
    var myObject;
    var myDialog = app.dialogs.add({name:"FindChangeByList"});)
    {with (MyDialog.dialogColumns.Add ())}
    {with (dialogRows.Add ())}
    {with (dialogColumns.Add ())}
    staticTexts.add ({staticLabel: "beach of research :"});})
    }
    var myRangeButtons = radiobuttonGroups.add ();
    {with (myRangeButtons)}
    radiobuttonControls.add ({staticLabel: "Document", checkedState:true});})
    radiobuttonControls.add ({staticLabel: "Selected Story"});
    If (app.selection [0] .silence! = "") {}
    radiobuttonControls.add ({staticLabel: "Sélection", checkedState:true});})
    }
    }
    }
    }
    Ditto var = myDialog.show ();
    if(myResult == true) {}
    {Switch (myRangeButtons.selectedButton)}
    case 0:
    myObject = app.documents.item (0);
    break;
    case 1:
    myObject = app.selection [0] .parentStory;
    break;
    case 2:
    myObject = app.selection [0];
    break;
    }
    myDialog.destroy ();
    myFindChangeByList (myObject);
    }
    else {}
    myDialog.destroy ();
    }
    }
    function myFindChangeByList (myObject) {}
    var myScriptFileName, myFindChangeFile, myFindChangeFileName, myScriptFile, ditto;
    var myFindChangeArray, myFindPreferences, myChangePreferences, myFindLimit, monarticle;
    var myStartCharacter, myEndCharacter;
    var myFindChangeFile = myFindFile("/FindChangeSupport/1test.txt")
    If (myFindChangeFile! = null) {}
    myFindChangeFile = File (myFindChangeFile);
    Ditto var = myFindChangeFile.open ("r", not defined, undefined);
    if(myResult == true) {}
    Loop in find/replace operations.
    {}
    myLine = myFindChangeFile.readln ();
    Ignore blank lines and comment lines.
    If ((myLine.Substring (0.4) == "Text") |) (myLine.substring (0.4) == "grep"). (myLine.substring (0, 5) is "glyph")) {
    myFindChangeArray = myLine.split ("\t");
    The first field in the line is the findType chain.
    myFindType = myFindChangeArray [0];
    The second field in the line is the FindPreferences channel.
    myFindPreferences = myFindChangeArray [1];
    The second field in the line is the ChangePreferences channel.
    myChangePreferences = myFindChangeArray [2];
    The fourth field is the range - used only text find/replace.
    myFindChangeOptions = myFindChangeArray [3];
    {Switch (myFindType)}
    case 'text ':
    myFindText (myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
    break;
    case "grep":
    myFindGrep (myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
    break;
    case 'glyph ':
    myFindGlyph (myObject, myFindPreferences, myChangePreferences, myFindChangeOptions);
    break;
    }
    }
    } while(myFindChangeFile.eof == false);
    myFindChangeFile.close ();
    }
    }
    }
    function myFindText (myObject, myFindPreferences, myChangePreferences, myFindChangeOptions) {}
    Reset the preferences of find/replace before each search.
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences = NothingEnum.nothing;
    var myString = "app.findTextPreferences.properties =" + myFindPreferences + «;"»»» » ;
    myString += "app.changeTextPreferences.properties =" + myChangePreferences + ";". " » ;
    myString += "app.findChangeTextOptions.properties =" + myFindChangeOptions + ";". " » ;
    app.doScript (myString, ScriptLanguage.javascript);
    myFoundItems = myObject.changeText ();
    Reset the find/change preferences after each search.
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences = NothingEnum.nothing;
    }
    function myFindGrep (myObject, myFindPreferences, myChangePreferences, myFindChangeOptions) {}
    Reset the find/change grep preferences before each search.
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences = NothingEnum.nothing;
    var myString = "app.findGrepPreferences.properties =" + myFindPreferences + «;"»»» » ;
    myString += "app.changeGrepPreferences.properties =" + myChangePreferences + ";". " » ;
    myString += "app.findChangeGrepOptions.properties =" + myFindChangeOptions + ";". " » ;
    app.doScript (myString, ScriptLanguage.javascript);
    var myFoundItems = myObject.changeGrep ();
    Reset grep find/change preferences after each search.
    app.changeGrepPreferences = NothingEnum.nothing;
    app.findGrepPreferences = NothingEnum.nothing;
    }
    function myFindGlyph (myObject, myFindPreferences, myChangePreferences, myFindChangeOptions) {}
    Reset the preferences of glyph in find/replace before each search.
    app.changeGlyphPreferences = NothingEnum.nothing;
    app.findGlyphPreferences = NothingEnum.nothing;
    var myString = "app.findGlyphPreferences.properties =" + myFindPreferences + «;"»»» » ;
    myString += "app.changeGlyphPreferences.properties =" + myChangePreferences + ";". " » ;
    myString += "app.findChangeGlyphOptions.properties =" + myFindChangeOptions + ";". " » ;
    app.doScript (myString, ScriptLanguage.javascript);
    var myFoundItems = myObject.changeGlyph ();
    Reset glyph in find/change preferences after each search.
    app.changeGlyphPreferences = NothingEnum.nothing;
    app.findGlyphPreferences = NothingEnum.nothing;
    }
    function myFindFile (myFilePath) {}
    var myScriptFile = myGetScriptPath();
    var myScriptFile = File (myScriptFile);
    var myScriptFolder = myScriptFile.path;
    CheminMonFichier = myScriptFolder + CheminMonFichier;
    If (queue (CheminMonFichier) .exists == false) {}
    Display a dialog box.
    CheminMonFichier is File.openDialog ("choose the file containing your list find/replace");.
    }
    Return CheminMonFichier;
    }
    function myGetScriptPath() {}
    try {}
    myFile = app.activeScript;
    }
    {catch (MyError)}
    myFile = myError.fileName;
    }
    return myFile;
    }

    I'm not a writer, but I'll take a stab and try to make a difference here.

    The main problem, in my opinion, is that you use a plain text instead of GREP search. Text gross has no provision to replace the text found by itself, for example, rather than using the codes you entered a literal string. Your search text of ' ^ p(^?) ' means find any character in brackets that occurs after a paragraph break. I would use in GREP ^ \s+ (\(.+?\)) which translates to find an opening parenthesis at the beginning of a paragraph (so he'll find if it happens to be the first character in th in a story) followed by a number any characters up to the first parenthesis (in the case where you have double the figures or double entries letter) followed by ANY white space (in the case where it is not an ordinary space or multiple spaces). Replace $1\t which means the text found in the first set of parentheses in query search followed by a tab.

    Parentheses are special in GREP, they surround groups of terms you want to re-use the text found, so looking for the actual characters you need to 'escape' with the-prefix, so \(.+\) will find a paren open followed by all the characters up to the end last paren in the paragraph. Addition of the? After the + makes research stop at the first closing paren met, although there are several sets in the paragraph.

  • Rename and change the date of the file on multiple files

    How to rename multiple files in pictures in a single operation like I did in iPhoto? The same question arises to change the filedate?

    I looked in the manual very rudimentary, and it seems to have disappeared. I think that pictures is a gradient iPhoto (I don't want to use a program with no future updates) and I'm not happy to trust pictures/iPhoto to archive all 18100 photos and videos in a single file which from time to time a photo or two disappears (will not help to repair the database file)

    I started using Adobe elements 14 Organizer to keep track of my files in a folder of my choice where my photos is located a file for each photo a week (feel safe) and Adobe Photoshop elements 14 to change files. He has a solution for my answers mentioned here, I have not found better (I tried AcdSee pro for mac but it is pretty unstable and limited in options)

    Come on Apple we give a new Photos with option not reinforced this low quality low option software

    You can't and you couldn't have in iPhoto, either - no change is possible for file names or file dates in a program

    Given that you want to not use pictures you have made the right choice - do not use in it, use a software you like - the software you use is your choice and you can change at will - but it is crazy to expect that Apple or someone else will change the software used and loved by millions just to meet your personal wishes

    And clearly, you have no idea how works same Photos - but because you don't like it don't is really no reason for you or for someone to try to explain it to you - just for a simple example - Photos put everything into one large file - it stores each photo in its own file using the same exact file used by each program Amc system including organizing Adobe

    You have made the right choice for you to use and enjoy - don't know why you even bother to post here

    LN

  • My document Pages when sent in PDF format opens with Acrobat Reader and displays the text pane

    Hey team

    I am a new user of recent Mac and I have some difficulty with the Pages.

    I'll create a new document and save it as a PDF file (save it to the desktop), when I open it again, it opens with Acrobat Reader and the text released along side this one pane. It does not open a document own stand alone. This cause me a problem when I want to send it as an attachment, as it includes this component, as well as all other toolbars with.

    Any help on this would be appreciated.

    SSA56,

    When you send the PDF document as an attachment, it will be sent as a document 'stand alone '. It will be open according to the preferences that are set by the receiving party.

  • When I upload a file with multiple pages is only the conversion first pg

    I am trying to download a tif file I scanned several pages and must be converted to PDF.  only the first pg is transformed?

    I'm sorry. Sounds like a chore for you.

    I'm going to suggest that you use the forum for pdf create services where you are likely to find someone who knows a bit more about it.

    You can get to it from this link: Document PDF of Cloud services

  • PDF fillable where the customer can add text AND change the fonts?

    Hello

    I would like to be able to provide my clients with editable poster templates. I created in InDesign posters, with a large white space in the middle where they can add their own texts, and when they're done, they can send them to the printer. The problem is, I just want to give them - in PDF print quality, so they don't mess up my share of the design (in addition, they are not sufficiently advanced to use indesign or illustrator or something like that).

    I tried implementing a PDF file using a text field, but it won't work. When the customer type in the text field, they will not be able to change the size of font, color, weight, etc.

    Is there some sort of 3rd party plugin that will allow me to create PDF files to fill live where the customer can indeed choose their fonts & things when they fill in their info?

    Thank you!

    Bernd: rich text only allows to apply bold, italic, exposing. It does not allow the user to make the text larger or to change the font.

    When I type ctrl-e in the area I can change the font and the font size.

  • How I rename an item in the main menu bar ('file', 'Edit'...)? With userChrome.css, I changed the 'content', but the 'label' wrote then.

    I'm changing the name of the main "bookmarks" menu item
    Regarding submenu items, I managed to change their 'content' via userChrome.css.
    But setting a name different in a "content" of the bookmarksMenu in this way only leads to show the new name of the menu with its next "bookmarks" label.
    How can I change the tag or remove its display?

    You cannot change the name of a menu via the code item in userChrome.css because you can use this file to make CSS changes and do not change the attributes.

    If you use a content property {content: "new label"} then you add only the text before or after existing text if you want that button would you like to work.

    You create a simple extension to make such a change or possibly use the extension userchromeJS.

Maybe you are looking for

  • Extremely slow in all directions. Typing, loading, handling and even just scroll to the top of the page to the bottom. Is getting worse. Frustrating Maddingly! Help!

    Firefox has been extremely slow. Typing, loading, search, even just scroll to the top of a page to the bottom. My daughter had the same thing happens to sound and had to get his computer disassembled and full recharged. I don't have this option. He d

  • Can I share files in icloud

    I just pay for more storage in iCloud. I still have the files on Google Reader. It has been reliable and convenient, especially to share files with other people. I can do this on iCloud? I have not yet found a way, and if I can't, then, it is pretty

  • Windows XP crashes whenever I click on shutdown?

    Windows XP stops responding whenever I click on stop, and I do a forced shutdown. If I open the Task Manager and terminate the "explorer.exe" process and run it again windows become sensitive, but when I try to click on stop again, it stops respondin

  • Cannot find CBFA. DLL

    When I run Cheyenne Bitware and click on receive to activate voicemail I get error messages "" canoe find CBFA. "." DLL"and"could not initialize modem ".

  • Enter name SSID of evil

    I tried to configure HP C7280 sister for wireless printing.  He finds the router, but I can't type the SSID name because the random letters and numbers keep popping up during the process.  I can't stop this irratic behavior.  Any suggestions on how c