Order that files are processed when running a batch script

I have a situation where I need to process a series of PDF document that reside within a single directory (Win7 OS). Since I am creating a sequence number the order in which they are processed them is important. In this particular case it is alphabetical. I have not been able to figure out what attribute Acrobat uses to determine what order to process, but it certainly is not name, date modified, date created or size. Does anyone know how Acrobat determines the order of files to be processed or how to control that? Currently my work around is to have the process ask which files I want to process instead of specifying an input directory. Then by selecting the last file first and holding the shift key selecting the first file to process, the documents are processed in the correct order. Any ideas would be greatly appreciated.

What you can do, although it's a bit of a workaround, is to split your workflow into 2 parts:
In the first you you save all of the file paths into an array using a batch.
The second part is a folder-level script which sorts the array, and then processes all of the items in it.
Of course, then you are limited to what can be done with a script. You can't use this method for OCRing files, for example.

Similar Messages

  • I am having trouble downloading photoshopcc.   when I try to open it tells me that files are missing

    I am having trouble downloading photoshopcc.   when I try to open it tells me that files are missing and I need to re-download, but system willnot let me re-download.

    Moved to ADE forum.

  • Final cut pro x keeps on saying files are full when trying to export when their not ?

    Hi
    Final cut pro x keeps on saying files are full when i'm trying to export when they are not full and also what setting do i export them on for a small quicktime?

    The preset that will give you the smallest file is email and you will have 3 choices of size. Not sure what you consider small, but also take a look at Apple Device.
    Your error message is Files are Full or DIsk is Full? Will need more info about your system specs, the format of the clips you're using and your project settings.
    Russ

  • PNG files are grainy when opened in Illustrator.

    Files that I create in Photoshop and save as PNG files are grainy and colored incorrectly when opened in Illustrator. The files are fine when opened in other programs. Please see the pictures below to illustrate my point. These are the same file, however, the first is the PNG file that I've saved in Photoshop and the second is how Illustrator renders the file.
    Original - Saved from Photoshop
    Rendered in Illustrator. Exported as PNG.

    It is PNG 24. It's super bizarre. I originally thought it was because the file began as a RAW file, but any file I export as a PNG gives me the same issue when opened in illustrator.

  • Used to convert all my videos into iPhone mp4 format using Any Video Converter - then add it to my iPhone 3GS. But last few days, I cant add video files to iTunes. and the iTunes doesnt even specify the reason except for that "files are not supported"

    Everyting was perfect earlier. Used to convert all my videos into iPhone mp4 format using Any Video Converter - then add it to my iPhone 3GS. But last few days, I cant add video files to iTunes. and the iTunes doesnt even specify the reason except for that "files are not supported"
    Everything is fine.
    -They are the right format
    -Quicktime is updated
    -I have tried simply dragging them into the 'movie' library
    -I have tried going to file<add file to library
    Nothing works, has anyone else had this problem and found a way around it?
    Any and all help appreciated.

    In addition to Mike's suggestions,  you only have 4GB of RAM and Mavericks does use more RAM than other versions. You may also want to look at the apps that startup on login and the possiblity of upgrading RAM.

  • I had to replace the hard drive on my computer.  I am now trying to download Adobe Photoshop CS6, previously purchased.  I get an error that files are missing after waiting for the whole download.  I have Windows7

    I had to replace the hard drive on my computer.  I am now trying to download Adobe Photoshop CS6, previously purchased.  I get an error that files are missing after waiting for the whole download.  I have Windows7

    The error msg said that the file archive part of Adobe photoshop CS6 is missing and that I need all parts in the same folder.

  • Error 45 Initializing In SQL*Plus When Running A Sql Script

    Hi All
    I have a daily scheduled jobs running on Windows server 2003 and 2008. Oracle Version :10.2.0.1 and 10.2.0.4
    right now jobs are not even starting when i run them manually. Found the error Error 45 Initializing In SQL*Plus When Running A Sql Script.
    it says Bug:3039738.
    what is the solution to fix this Bug ?
    thanks
    Shawn

    user9174724 wrote:
    Hi
    do you think the Problem is not with the script ?
    when i run the job its reaching SQLPLUS and giving error
    Error 45 Initializing In SQL*Plus When Running A Sql Script .
    Server:windows 2003 and oracle version :10.2.0.1
    CMD /C %ORACLE_HOME_PRIME%\bin\sqlplus.exe /NOLOG @ %xxxx_HOME%\DBA_Backup\BackupDo.sql testdb BackupFull
    The above line does the following:
    1) launches a command procesor
    2) passes that command processor the following command line parms:
    /C
    (process the following command, then terminate)
    %ORACLE_HOME_PRIME%\bin\sqlplus.exe
    the launched processor will process the executable 'sqlplus.exe' found in the \bin subdirectory, found in the directory indicated by the environment variable ' ORACLE_HOME_PRIME'. The remainder of the command line will be passed to sqlplus.exe for interpretation and processing
    /NOLOG
    tell sqlplus to start up without trying to immediately log on to a database
    typically used to indicate to sqlplus that the immediately following string names a file of sql and sqlplus commands to be processed.
    %xxxx_HOME%\DBA_Backup\BackupDo.sql
    tell sqlplus to execute the commands found in the file 'BackupDo.sql', found in the subdirectory DBA_Backup, found in the directory name by the environment variable 'xxxx_HOME'.
    testdb
    BackupFull
    pass the values 'testdb' and 'BackupFull' to be used as values for substitution variables &1 and &2 in the file 'BackupDo.sql'
    Script:
    rmanbackup.rman
    BACKUP AS COMPRESSED BACKUPSET DATABASE FORCE PLUS ARCHIVELOG;
    DELETE NOPROMPT ARCHIVELOG ALL BACKED UP 2 TIMES TO DEVICE TYPE DISK;
    LIST BACKUP SUMMARY;
    LIST BACKUP;
    EXIT;I don't know what you expect of this. It is an rman script and we've seen no sign of an rman script being executed in any of what you've shown us. RMAN commands are processed by rman, not sqlplus.
    Unfortunately, you didn't think showing us the contents of BackupDo.sql was of any value in finding out what your problem was.
    Edited by: EdStevens on Jul 11, 2011 7:58 PM

  • Generation of numerous archivelogs when running a batch risk analysis

    Is it a normal process to generate so many ARCHIVELOGS when running a batch risk analysis?  If the jobs are broken up into three seperate processes, we use approximately 7GB.  If we run all the processes into one, we use 100+GB. What storage requirements should we anticipate is needed in DEV and PRD for the generation of ARCHIVELOGS ?

    I found a forum question that has information that resolved our issue.  The following is the link:  https://forums.sdn.sap.com/click.jspa?searchID=14313475&messageID=5373262
    Q: Background jobs to analyze users against our rules are taking forever. Our feeling is that the problem lies in the R/3 backend, however we need to know how to improve performance.
    A: Step 1
    Please ask your SAP BASIS to apply the following notes:
    Note: 1044174 - Recommendation for CC 5.x running on Oracle 10G Database
    Note: 1121978 - Recommended settings to improve performance risk analysis
    Note: 1044173 - Recommended NetWeaver Setting for Access Control 5.x
    Note: 723909 - Java VM settings for J2EE 6.40/7.0
    Step 2
    Once you applied all of the above SAP notes. Please ask your SAP DBA/BASIS to do the following actions:
    Truncate table virsa_cc_prmvl; this is the table which stores all the analysis results.
    Execute stats on all virsa_cc* tables. Example: exec dbms_stats.gather_table_stats ('SAPSR3DB',VIRSA_CC_PRMVL)

  • Displaying the correct value of Y in page X of Y when running a batch

    Hi There
    Does anyone know how I can re-set the Y of page X of Y in the footer for each PO when running a batch?
    I am using <?for-each@section:G_HEADERS?> which is working great for each PO - re-setting the PO number in the header and re-setting the X in page X of Y in the footer for each PO, but unfortunetly the Y is set to the maximum number of pages of the first PO. I.e. If the first PO have 5 pages then each PO after that will have a Y set to 5 even if they have less or more pages.
    Does anyone know what I can do to get round this?
    I am running version 5
    Regards
    Ruth

    OK I don't have the time to try it out - here just the solution idea.
    1) XSL allows you to have links that gets the page number of an object with an id.
    This is used for example in our table of contents.
    2) You create a link to an object (empty fo-block) on the last page.
    3) The problem is that each of the objects for each of the sections needs a seperate
    identifier otherwise you have the same bug that 5.0 has.
    4) You use i.e. the position() from the loop (@section loop) to concatanate it to the id.
    Total Page Number
    <fo:page-number-citation ref-id="MY_KF_END_OF_PAGE{position()}" />
    End of Page reference
    <fo:inline id="MY_KF_END_OF_PAGE{position()}" />
    You may have to save the position in a varaible - be careful to use the correct
    context - probably incontext - check the user guide on contexts.... I would need
    to play with the context for the variable myself.
    Hope that helps.

  • Memory issues writing binary files, using a subVI to do all File Handling, topVI, when run normally files are way too large.

    Problem writing binary files with LV 8.5. I have one VI that does all the interaction/file I/O and another VI for testing. I find when I run the subVI where all the data reading/writing is happening with break points and single stepping through the code all is OK, but when I run normally the files are much larger than they should be and as well when I close the files I get a error. Any insights?  
    Walter

    Waltz wrote:
    I found the problem, I was actually trying to close the files twice.
    I don't see how this could cause the symptoms you described in the first post.
    (It only explains the error on close).
    LabVIEW Champion . Do more with less code and in less time .

  • How to tell if multiple files are selected when they are opened in windows

    Hello, can someone help me, my question is how to tell if multiple file selections were made when they were opened (right-click->open). Through modifying the registry I already have my Java program start up when a file with specific extension is double-clicked.
    The problem is when multiple files are opened at the same time, an instance of java program is created and run for each of the selected files. Ideally I would like it so that only one instance of java program is run, regardless of the number of selections.
    When you try it with Microsoft media player or winamp for example, it seems that only one process is created and run (I don't see many processes spawning when I watch it using task manager). Maybe this is more of Windows issue rather than Java programming issue. Any help is appreciated.

    If anybody wants to know, this can be solved by either 1) using DDE 2) using DropTarget (from Windows) 3) make a light-weight EXE dispatcher (eg. in C), and use file to have IPC between the dispatcher (which gets the filepath for each of the selections) and the java program. There can be other methods of course. Using the second option is the simplest but it requires WinXP and higher. I implemented it using option 3.. the downside of this is there's a warning message pop up when trying to open many (>20?) files at the same time by Windows. However, option 1 'seems' to have the same limitation. Having a java program created each time for each of the selections seems to be too slow, for viable option.

  • Trying to combine folders within LR4 from two separate drives without creating duplicates--sometimes it won't let me transfer to destination folder because it says files are there when they are not; other times, allows duplicates to transfer

    Trying to consolidate 261K+ of images within LR4 between two drives.  Someone who was "helping" me with my Library in LR4 for some reason took some but not all of the file folders from my main backup drive (M) and duplicated them onto a partitioned hard drive (E) directly on the computer.  The duplication is huge, so I am trying to condense them all back onto the original backup drive M, particularly since I believe there are also folders on the partitioned backup drive E that do not appear on the main one M, and there are many more file folders on M that are not on E, so that is the destination drive.
    CONSOLIDATION:  When I try to drag either the file folders or the individual files from the duplicate drive E to the original drive M to combine the two drives since the folders in many cases for some reason are not identical, sometimes LR4 says the files already exist when they clearly don't. Other times it allows me to drag and drop all files, even if the exact duplicates are already on the destination drive, thereby doubling the number of files per image and creating more duplicates.  Right now I am opening each file folder on the duplicate drive E, looking at what extensions and file names are there, scrolling to the original drive, making sure they appear to be identical, then going back to the duplicate drive E, deleting the images in the folder, removing the folder, and moving to the next folder on the duplicate drive E.  *There has got to be a simpler way.*
    CONSOLIDATION APPROACH: I did start to create file folders names A, B, C and group file folders under them to reduce clutter, since those header folders can be closed down when not in use, but now I am wondering if I should have done that alphabetization to the main backup drive rather than to the partitioned backup drive.
    My goal is to consolidate the two drives down to one, delete as many images along the way that I know I will never miss, then backup the catalog and export it to an external drive and then copy that to yet another drive for offside storage.  Does this sound like the proper plan?  Last time it took almost 24 hours and over a terabyte to export the catalog.
    DUPLICATION:  I also have many file folders that have the exact same image in them.  One portfolio image may actually be in eight different folders, with the exact file, file name, file size, and date, even though I always have checked "no duplicates on import,"  How can this be? What is the best way to sort through duplicates?  Why are the files in some of the duplicate folders not in numerical order? If I do a search and call up a file # and find 15 duplicates, the only way I can find where those duplicates reside is to take each duplicate, right click to Locate Folder in Library, then once I find it, I have to go back to All Photographs>Text.search for file #, go to the second duplicate, right click to Locate Folder in Library, then once I find it, I have to do it all again.  Is there a simpler way to see all the occurrences in their respective folder locations at once?
    SEARCH BY FILE FOLDER NAME ONLY: I also find I can't search for a file using a folder name (for example, "John_Doe").  I can only search by file #, keywords, or camera/lens/date, etc.  Why will it not work to use All Photographs>Text>search for Doe? In other words, if I didn't keyword the individual files as John Doe, I can't search for them by that moniker.
    BACKUP:  It also appears that the only way I can back up the catalog is to shut down LR.  Really?!
    FOLDER LIST PRINTOUT: Is there a way to print out the Folder list (other than a screen shot)? I have so many file folders on each drive since I sort not by Year/Month/Date but by subject. It makes trying to compare duplicate folders quite unwieldy. 
    SLOW RESPONSE:  And finally, as though that weren't enough, why does LR4 continually blink to a white screen after each keystroke?  Takes forever just to be able to click through images, view info after hovering, etc. All other programs are closed down and the operating system shows very little memory being used.

    A brief and probably non-helpful answer: I know of no way to eliminate your large amount of duplicates other than by repetitive, tedious manual effort.
    *There has got to be a simpler way.*
    I hope you're right, but I don't think there is a simpler way.
    BACKUP:  It also appears that the only way I can back up the catalog is to shut down LR.  Really?!
    Yes, really

  • In authorware .avi files are jumping (when paused) to one frame ahead on mouseover.

    Dear All,
    I had prepared the CBT in a Authorware application (version 7.02) and published it.
    The .avi files are playing well in my system (OS=Win XP) and same CBT file in some of the Win XP systems it is not playing well.
    i,e. when the movie is playing and I click on the pause button the movie.avi is paused, but the real problem is persisting when I bring my cursor on the different navigation buttons (mouseover) then the movie is jumping to one (1) frame, and if I scroll the text samething is happening the movie is heading forward one frame ahead. But when I click on Play button the movie is playing from the place where it has been paused.
    I tried to check in the Virtual Machine and the CBT is working fine, whereas in the upgraded WinXP systems the CBT is giving the problems.
    I tried to resolve the problem along with System Administrator (they were saying that the Authorware Software need to give some patch files.)
    Please HELP me out with the patch files I need to upload along with the CBT system.
    As I tried to copy all the xtra's into the XTRA folder but still the problem persists.
    Please let me know what to do.
    Thanks and Regards
    Ravi Rao G.

    There are no patches for Authorware that will change the way video plays. As far as I know there are no patches for Authorware beyond 7.0.2. You have the most current version. You could try renaming the file to .wmv which will change the extension that would be used from a7vfw32.xmo to a7wmp32.xmo. The a7vfw32 is used for avi files but a7wmp32.xmo uses the Windows Media Player in the background to run the file. If this doesn't work are you able to try different movie formats?
    HTH,
    Mike

  • Colors are gone when running report jsp

    Hi guys,
    Could you send me to some reference to understand why colors are gone when I run a report that was called from a Form in web environment?.
    Colors of letters are still ok, but the frames that were coloured in Design time does not appear in color anymore.
    Rgds.
    TIA.

    If you are using a template for report and want the same template in web report then you have to make sure that all your image files and .css files relating to that template are there in your web directory. e.g.
    ../images/image_file.gif
    ../css/css_file.css
    otherwise it'll show you blank frames in web page.
    Usman

  • Parallel Processing when running in background

    Hi
    We have implemented a parallel processing solution using the Call Function Starting New Task Destination in Group format to split a large number of updates across an RFC Server Group.
    This works well when running the ABAP in dialog, but when we schedule for background processing, the parallel processing does not seem to occur, we get a single background process.
    Does anyone have any ideas why this may be occuring ?
    Thanks
    Paul

    Paul,
    Starting new task will start a new LUW in dialog process and not in background. This is the reason you are having a problem. While technically STARTING NEW TASK is used for parallel processing, you need to consider whether the program will be run in foreground or background mode.
    In case of background, you need consider using multiple jobs via job open, submit, job close. This way you can initiate more than one process in your server group to do the work.
    You will need to consider the # of background WP available and the # of WPs you can use for this program.
    So if there are 100 WPs available and you can use only 10 at any give time, then you should schedule 10 jobs and then check the status of the 10 jobs before you can start scheduling the next jobs.
    You can use the FM SPBT_INITIALIZE to check the # of WPs that are currently available in the server group.
    Hope this helps.
    Thanks,
    Vikram.M

Maybe you are looking for

  • Layering photos and getting text up front

    I'm finding iBooks Author terribly frustrating. I am building a photo book where there are sometime two or more photos on a page. When I use the gallery widget and create a text box on top of a photo I can never get the layers to come out right in th

  • Help MacBook Pro (2011) doesn't recognise internal display but only external display

    Screen has been replaced but that didn't solve anything. MacBook connects fine to any of my TVs but doesn't display anything on its own screen. Have seeked professional help to no avail. Someone please help.

  • How do you set up a wireless router for laptops only?

    Recently I purchased the Lynksys WRT54G2 router for my home.  My wife and I both have laptops and NO desktop computer.  How do I hook up the router to work on both our laptops since we dont have a desktop computer?  Thanks.

  • No digital output

    All of a sudden the Digital Output on my iMac has stopped working. There is no red light coming out of the toslink cable. In System Preferences/Sound there is no Digital Out in sound output devices anymore. I have checked that the cable is ok. Previo

  • Reverse engineering with Rational Rose

    Is anybody using the above? If so, have you developed any scripts to facilitate updating the Rose model, and which you'd be willing to share? Or perhaps discuss jointly writing same? Ideally, there would be an Fscript to facilitate exposting Forte pr