Using Batch sequences in Acro Xi Mac

Hello Everyone:
   I have a couple of scripts heavily in use that required they be built as part of a batch sequence, as they deal with multiple PDFs.. 
   These scripts are fairly large (one about 1000 lines, one in excess of 3000 lines) with the potential to get even larger. 
   Additionally, several requests for scripts are rolling down the line that look to be of similar or greater size. 
   The Adobe Acrobat editor is just not a good fit for building such large scripts.  I have switched the editor to UltraEdit, which is a much more capable editor.
   However, the problem comes when a new version is finished and I need to install it in other computers.  It seems that the only way to do this is to copy the script into a text file, take that text file to the next computer in line, open it up in a text editor, copy the script to the pasteboard, open up the batch sequence, open up the execute Javascript command, open up the script and copy the new code on top of the old code.  If this needs to be done on multiple machines, it becomes, ahem, tedious.
   Is there any way to save the script to a XXX.js file and just copy the new js file over the old XXX.js file?  I've looked at addscript but was not reassured by its examples in the Batch Sequence PDF that it could do the job I need it to do..

Gilad:
   Thank you.  Though I would have preferred something a bit simpler, the import/export method you suggest is indeed simpler than the process I was using.  It still has its warts and wrinkles, but with practice I am sure I can find ways to minimize those minor irritants.
R,
John

Similar Messages

  • Using "automating batch sequence" query

    Hi,
    I am trying to add text content to an area of the page in a group of pdf files without having to open each file. I am not replacing existing text. After checking,  I could not find a batch sequence to do this in Acrobat v7.1. Could this feature be available in Acrobat v9.?  and/or would I have to use the (acrobat v7.SDK) to create a script and plug in to do this? or if not, in Acrobat v.9, use the SDK to create the script and plugin?  I would appreciate any information.
    thanks,
    je112

    It's not possible to just add running text to a PDF using a batch process or a script. What you can do is insert a field with text and then flatten it.
    This will have a result similar to adding text to the document, but it will not be an integral part of the running text (ie the text you add will not "push" the rest of the text forward).

  • Possible to do make Batch Sequence Searchable by date?

    I want to know if it is possible to edit/create new script to Edit Batch Sequence - Searchable, recognize text Using OCR, but to only do it for a date range? How would I go about doing this.
    Right now it takes multiple screens and clicks to make documents searchable, I would like to create a script that tells you the last time you did a batch searchable request, allows you to select a date range, folder would ideally be built in - so I do not have to select it everytime and then on selection of date range, it runs and completes the request. Is this possible? Where do I start?
    Thanks,
    haleygurl86

    Date of what? Do you mean the file's creation date?
    If so, that's not possible. You can access the file's creation date in a script, but a script can't OCR a file.
    The best way would be to create an input folder and paste into it the files you want to OCR.

  • Javascript in batch sequence stopped working

    The following javascript used in a batch sequence is causing Acrobat to stop working. It was working fine, this problem has happened sometime in the last 2 weeks. This has affected all of our PCs regardless of Acrobat update version. We are running Acrobat 8 (8.15, 8.17, 8.21, 8.25). The only update common to all PCs is Windows Update.
    /* Extract single pages to c:/Adobe */
    // Regular expression used to acquire the base name of file
    var re = /\.pdf$/i;
    // filename is the base name of the file Acrobat is working on
    var filename = this.documentFileName.replace(re,"");
    try {for (var i = 0; i < this.numPages; i++)
    this.extractPages({
    nStart: i,
    cPath: "C:\\Adobe\\"+filename+"_" + i +".pdf"
    } catch (e) { console.println("Aborted: " + e) }
    Any Clues?

    Thanks for the speedy response. I tried this and the problem is still there.
    I did some further testing and the original script, and the new one modified to include your correction, both work if the PDF only has one page.
    With more than one page Acrobat 'has stopped working'

  • Batch Sequences can't convert 10.000 pdf-files at one time

    I have Acrobat Professional 7.0 and I am running on Windows XP.
    To convert from PDF to EPS I am using Advanced - Batch processing - Batch Sequences.
    Every week I have around 5.000 PDF-files which have to convert to EPS without any problems.
    Sometimes I have more than 10.000 PDF-files. After converting to EPS I thought Acrobat Pro was finishing to convert all the PDF, but if I look at the number of EPS, it seems Acrobat Pro didn't convert them all and it didn't give any error message.
    This always happened when I have more than 10.000 PDF-files.I think Batch sequences cannot convert above 10.000 files at one time.
    Is this a known issue? Is there any solution?

    File > Export >  Export Multiple Files will work as well.
    You can choose your conversion settings in Edit > Preferences > General > Convert from PDF.

  • Running a batch sequence in Acrobat 11

    Hi All:
       I am running a batch sequence in Acrobat 11 on the Mac and as quickly and conciesly as I can, I want to outline the steps in the process:
    1.)  Select the batch sequence to be run.
    2.)  Select the files upon whic to run the batch sequence.
    3.)  Click Start.
    4.)  The text of the script appears on the screen, highlighted.
    5.)  Click OK to close the script editor and run the script on the first file.
    6.) The text of the script appears on the screen, highlighted.
    7.)  Click OK to close the script editor and run the script on the first file.
    8.) The text of the script appears on the screen, highlighted.
    9.)  Click OK to close the script editor and run the script on the first file.
    <continue the last two steps for each document you process>
    If the user has selected thirty documents to process in this sequence run, then she must see the script apear thirty times, and must press the OK button thirty times to actually run the script on the next Acrobat document.  Ditto for sixty and ninety documents.This is cumbersome and tedious not to mentionn dangerous to the script.  Im ny preactice run I accidently tapped teh spacebar and completely wiped the script!.  Is there any way to tell the program to skip displaying the script at the start of each cycle and just move on to the next job?

    Click the commands you added to the Action and make sure that none of them has the "Prompt User" check-box underneath it ticked.

  • Can't Use Batch Rename "Rename In Same Folder" for some photos

    Have a strange problem: when using "Batch Rename…" under the "Tools" menu, "Rename In Same Folder" is unusable for some photos taken with some cameras, not for others. For one example, I shift-selected a range of photos taken at a recent vacation, some with my iPhone, some with my girlfriend's Canon PowerShot SD450. Bridge renamed the iPhone photos, but not Canon photos. For another example, if I select a single photo taken by her cell phone or Canon camera, "Rename In Same Folder" is grayed-out; if I select a single photo taken my by iPhone, not so. Does anyone understand this behavior, and is there a solution?

    Bridge Support Center in the help menu leads to a 404 error page.
    Sadly enough this is also on my system (Mac OSX 10.6.8) It should not be showing 404 but it is there...
    What Bridge help files and links, forums, communities, google searches do not do is tell you how to fix what happens with the problem
    In general restarting Bridge holding down option key (in your case alt key) to choose reset preferences solves most problems.
    Here is a page from Adobe Support about Troubleshooting (although this states you should combine option/alt with cmd/ctrl but that is not needed)
    http://kb2.adobe.com/cps/317/317912.html
    I want to use Bridge batch rename to change jpegs into Mac PC compatible jpegs.
    Although I have the option for compatibility with Unix and Windows checked in my customized presets I'm not really aware of the need for that. If you have a .JPG or .jpg extension as the extension a Mac reeds and opens the file without problems. I am aware that as a Mac user I had the need to take care of Windows files in the past. Before OSX a Mac did not need an extension to recognize and open a file. Since OSX is Unix based the need to use an extension is there and also you should only use one dot (.) in the filename and that is before the extension at the end of the filename. Using spaces, commas etc is possible but not prefered. In basic, keep it simple (and short) and the file will open on all systems without problems.
    When you select a preset, the rename and preview buttons grey out. So I start all over...clear cache, check file permissions, restart/shutdown, etc
    That should not happen, presets and batch rename should be always available, even if you have only one file selected. You should start with the refreshing of the preferences. Deleting caches and checking file permissions are not needed every time for clearing prefs (although it is wise to maintain your system on a regular basis, but that is good for the use of all apps).
    On a Mac the user defined Batch Rename settings are saved in the user library / application support / Adobe/ Bridge CS5 / Batch rename setting. (not a single clue how that translate to windows but I have no reason to believe that such a file should not be present on your system.)
    Enter the term "batch rename" in the windows Bridge forum search and I got....ZERO results.
    Well, again a disappointment, there will be many result available in both Windows and Mac forum but it sure is not easy to find them
    The forum search option is next to useless. I believe you should try to switch to the main forum page or something, I once had a result but after so many tries I forgot how I managed this (combined with getting angrier every try...)
    I could really use some help because there is no way I can convert the number of files I have to make them compatible in MACs
    As stated before, if the are .jpg they are already compatible
    it used to be in CS 3 and 4 but since I "upgraded" to Production Premium suite 5.5 none of the version work.
    If you keep having problems you might consider the clean tool option to clear PSCS 3 and 4. Check also this KB article:
    http://www.adobe.com/support/contact/cscleanertool.html
    It should be possible to use all CS versions on your system but you can have only one version of Bridge active at the time. Upgrading from a single CS to a Suite should also be possible without problems but sadly enough everything that should be possible without problems is often only happening in the ideal world...

  • Batch sequence to 'flatten' xfa form to static non-interactive AcroForm

    Hi,
    I'm looking for a way to flatten a bunch of xfa forms in a batch sequence. The result being the exact same as printing to pdf.
    I believe I use to just add optimizer settings in the sequence editor and that would do the trick. But now I'm getting an error saying optimization settings cannot be applied to an xfa form.
    Any help would be much appreciated.
    Thanks.
    Kyle

    Actually George I found a solution. They are dynamic xfa forms. I realized that the pdf printer settings has an option to suppress the save as dialog and default the output flat pdfs to a location of my choosing. I just set the pdf printer as my default printer and run a batch sequence to print the dynamic pdfs.
    It requires a decent system with lots of memory since an instance of Acrobat is opened for every pdf processed but it does the trick!
    I appreciate your response.
    Kyle

  • Batch sequence to remove document JavaScript

    Does anyone know of a batch sequence that can remove the document JavaScript from a group of Acrobat 9 Pro PDFs?

    If the doc-level Javascript names are not known in advance, then the only way I found to remove all of the Javascripts is with doc.extractPages(), which will create a new doc object, and then newDoc.saveAs() followed by newDoc.closeDoc().
    I don't do this in a batch sequence but in a .Net app, so I'm not entirely sure how you would write this in a batch sequence.  Here's a code snippet that shows the basic logic:
                    object AcroJS = AcroPDDoc.GetJSObject();
                    string PdfFullPath = "C:\\filename.pdf";
                    Type T = AcroJS.GetType();
                    object newDoc = T.InvokeMember("extractPages", InvokeMethodFlags, null, AcroJS, null);
                    AcroJS = null;
                    AcroPDDoc.Close();
                    object[] saveAsDataParam = { PdfFullPath };
                    T.InvokeMember("saveAs", InvokeMethodFlags, null, newDoc, saveAsDataParam);
                    T.InvokeMember("closeDoc", InvokeMethodFlags, null, newDoc, null);
                    newDoc = null;
                    AcroPDDoc.Open(PdfFullPath);
                    AcroJS = AcroPDDoc.GetJSObject();
    This can also be used to create a new doc GUID.
    Bill

  • Example of running a batch sequence without Evermap

    Good afternoon
    I am trying to run a batch sequence in Acrobat X from a button on a form in MS Access.
    I am aware that it is not possible to run a batch sequence (action) from the command line - you need to purchase Adobe's partner Evermap's AutoBatch to do this - but is it possible to recreate all of the menu selections etc. using the SDK?
    I know that Evermap provides this facility but has anyone else created the code to do this?
    It seems like it would be a really useful tool for Adobe to add to Acrobat but then I am not aware of the reasons why they have chosen to leave it out.
    Many thanks,
    Martin.

    Okay, but Evermap (the Adobe Solutions Partner) have developed and are selling a plugin that allows people to run batch sequences from the command line.
    Why do Adobe allow a plugin that allows enhanced command line options but then not incorporate the option as part of Acrobat as standard?
    On the one hand I hear Adobe saying that you cannot run enhanced command line options due to technical and legal issues but then on the other we see Adobe's Soutions Partner selling a plugin to do exactly that.
    Can you please unconfuse me?

  • Assigning "hierarchical" keywords using Batch Change or Metadata Preset

    Part of my keywording structure looks like this:
    Men
         Basketball
         Golf
         etc.
    Women
         Basketball
         Golf
         etc.
    I know that true hierarchical keywords don't exist in Aperture. But when I assign keywords using the Keyword Controls or dragging from the HUD, the parent (men or women) is "attached" so you can search for the one you want.
    I want to be able to assign the proper keywords using Batch Change or in a metadata preset during import. But I have yet to find a way to do this. Is there some hidden syntax for this? Or is it one of those impossible things in Aperture's current (and rather limited) keyword handling?

    You're welcome.
    A second copy of the iPhoto library on a second drive is always good. I once lost my backup drive and the system drive at the same time, because a lightning caused a power surge that killed both my macs system drive and the connected backup drive. I was lucky to have a bootable clone of the system drive as a second backup.
    I like this version of the quote you cited:
    A little learning is a dangerous thing;
    drink deep, or taste not the Pierian spring:
    there shallow draughts intoxicate the brain,
    and drinking largely sobers us again.

  • Batch Sequence Problem

    I am using Acrobat 9.4. I have a JavaScript that runs a batch sequence to create pop-up tool tips for certain words and phrases. The sequence works properly on most PDF files. I have a problem that on one basic PDF file the batch sequence properly creates the pop-ups but in the process converts the file to a PDF Form. The JavaScript author believes the problem must be that Acrobat adds Form Fields to the basic PDF file during the sequence operation and then thinks the file is a PDF Form. Is there any way to stop this from happening?

    Technically, a document with just a single button is a form. If you mean that the Forms document message bar appears, then that's a known problem. There is a user preference that controls whether the message bar is shown, but it's up to the user to set it.
    Without seeing the code, it seems apparent that it does add some type of form fields to the document to implement the tooltips and that is indeed the reason you're seeing the mesage bar.

  • Batch Sequence Page Scaling

    I have a few hundred PDFs that I need to change the page scaling on, hopefully using a batch sequence or another automated method. I know I can change a single PDF in Acrobat by going to the Advanced tab on the Document Properties and setting the Page Scaling to Default, but I do not want to change hundreds of PDFs manually. I have also tried creating a PDF package and changing the document properties, but it only affects a single PDF in the package.
    I am really looking for a JavaScript code to use in a batch sequence that will change the page scaling to either "fit to printable area" or "shrink to printable area" and save the document with that setting so I can distribute them to others with the page scaling already set and ready from them to print.

    I have been able to use code in Acrobat 6 Standard (Advanced - JavaScript - Document Actions - Document Will Print) to change the page scaling on documents, but it only saves the action in Acrobat 6 and does not save the print setting when the PDF is opened in Reader or Acrobat 8. I tried copying the full acro_script from Acrobat 6 to 8 using a batch sequence in 8, but it does not work.
    Code used in Acrobat 6:
    var pp = this.getPrintParams;
    pp.Handling = pp.constants.handling.shrink;
    Is there a way to convert this code to work in 8? And is there somewhere else in Acrobat 8 (I have Pro) to enter JavaScript besides in a batch sequence?

  • Batch sequence memory leak?

    I wrote a JavaScript batch sequence and ran it in Acrobat 9 Pro on a folder of PDFs. Acrobats memory use steadily increased until it hit 1.1 GB. Then an Acrobat dialog said no files were processed, the memory use dropped back to normal and the CPU usage dropped to zero. So it looks like the problem includes a memory leak. As a test, I replaced my batch sequence with a simple, one-line test:
    var r = test;
    It has the same behavior. Any ideas?

    thanks for your reply.
    i have gone through those APIs you have mentioned and understood that we can run any custom command or existing global command using those APIs.
    my requirement is to launch the sequence file created. is there any way to directly launch the sequence file or else do i need to process the sequence file to know the command and parameters?
    if i need to process the sequence file, it will be always "Recognize text using OCR" and parameters may differ. for this, what is the command i need to execute?
    i am new to this environment, please dont mistake me.
    thanks in advance.
    regards

  • Javascript in batch sequence

    I've done some Acrobat scripting but mostly through VB and I'm able to write what I need but I want to have it as part of my operator's Acrobat instead of the of separate program. That said, I want to write a Java script that I can include in batch sequence.
    I need to add a page to the start of a document and I want to have that page be nubered "a" without disturbing the numbering else where in the file. By simply adding the page at the start with the batch sequence it adopts the numbering of the first page. So if the first page is numbered as "i" then the new inserted page gets numbered "i" and the rest of the numbering changes, what was i becomes ii, what was ii becomes iii, and so on. I'm able to script this in VB by adding the page at the end, renumber them using the SetPageLabels from a Javascript object, then moving the page to the beginning.
    Is there any documentation on using Javascript within a batch sequence?
    Thanks,
    Ken

    Well, hacking along here working in the console pasting my code in.
    The script adds a single page from another Acrobat file to the start of the open PDF. I need the page that goes in at the front to be numbered "a" and NOT effect numbering in the rest of the pages. Some files work fine, other files not so much, like the Javascript API reference PDF as well as other PDFs we've created here form InDesign.
    The script inserts a page at the end of the PDF and numbers that page "a" then moves it to the start of the document. The problem occurs when the page is moved to the start, it changes the number of all the other pages to follow page "a" which is a bit of a silly thing to have to send my clients. I decided to compromise and if the first page (before I insert the anything) was numeric I would simply try changing things to start page 1 after my inserted page "a".
    My code looks like this:
    var NumPages = this.numPages
    var PgLabel = this.getPageLabel(0)
    this.insertPages(NumPages-1, "/F/TNTSTUFF/Disclaimers/HUP_ProofNotice.pdf")
    this.setPageLabels(NumPages,["a", "", 1]);
    this.movePage(NumPages, -1)
    if (PgLabel.match("((-|\\+)?[0-9]+(\\.[0-9]+)?)+")) {  
            this.setPageLabels(1, ["1", "", 1]);  
    However, the setPageLabels command is causing this error:
    RaiseError: The base pages object is missing or invalid.
    Doc.setPageLabels:7:Console undefined:Exec
    ===> The base pages object is missing or invalid.
    I'm not sure it is relavent, but on the files that work the numbering in Acrobat looks like this with the parentheical numbers:
    Files that DON'T work look like this, with NO parenthetical:
    Even if I manually renumber the pages starting with 2 to make the numbering in the 2nd file look more like the numbering in the first file, I still get the error.
    Is there a way I can overcome this with Java code and what the heck is it?
    Thanks again to anyone who can help.
    Best,
    Ken

Maybe you are looking for

  • Uploading an image

    Hello I would like to write a program where I can upload an image from my computer and have it displayed in the program. I understand that I need to use JFileChooser to do this but before I start writing code I want to know is it possible to achieve

  • Can I backup an external hard drive with time machine

    I have my IPhoto library on an external hard drive and want to include this in my time machine backups.

  • XML Standard for Comments on Tables, Columns?

    We are creating a new application and plan to store comments inside Oracle using the comment on table / column commands, but would like to store them in a manner that XML tools could understand. Is there some standard naming convention for things lik

  • Lightroom 4 (DVD) for installation on my MAC Desktop ?

    Recently received Lightroom 4 (DVD) for installation on my MAC Desktop. When I go to install I get an error message "Operation could not be completed ( com.apple.installer.page controller error-1).Couldn't open 'Adobe Photoshop Lighyroom 4. pkg'

  • Business Model is duplicated after Merge

    I've been pretty successful at merging repositories - thought I had it down. This time, after completing the merge, the logical model is duplicated along with the physical database folder. Any thoughts on what is causing this?