Create Action that delete input file after OCR

I've created an Acrobat X Pro action that OCR's all files in a given INPUT directory and then save the OCR file in an OUTPUT directory.  Is there a way to delete the file from the INPUT directory once it's processed?

Hi,
There is a way but I would not do it. Rather than put the files to an "output" folder you can replace the original files in the "input" folder. Why not delete the original files through windows when the process is complete?

Similar Messages

  • Need Help-SOA 11g File Adapter unable to delete input file and its crashing

    Hi All
    Please find the details below:
    1. We have created a simple SOA composite to Read file from an input directory, archive the file in an archive directory using Inbound File Adapter Read
    and then use Outbound File Adapter Write to move the file to a output directory.
    2. File Adapter needs to delete the file after successful read/retrieval.
    3. We are using the "Use Trigger File" for invoking the file adapter. This is a new feature in SOA 11g
    4. Also we are using the option of reading the file as an attachment as we are not doing any transformation in the composite
    Issue Details_
    1. When the trigger file is put in the input directory for the first time, the File Adapter reads the file, archives it and moves it to the output directory
    2. However it does not delete the input file from the input directory and raises Fatal Exception mentioned below:
    [*2011-01-12T16:55:48.639+05:30] [soa_server1] [WARNING] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@19c243d]*
    [userId: <anonymous>] [ecid: 0000IptyLrL9_aY5TrL6ic1DBOS_000009,0] [APP: soa-infra] File Adapter FileAdapterTriggerFilePOC PostProcessor::
    Delete failed, the operation will be retried for max of [0] times
    [2011-01-12T16:55:48.639+05:30] [soa_server1] [WARNING] [] [oracle.soa.adapter] [tid: weblogic.work.j2ee.J2EEWorkManager$WorkWithListener@19c243d]
    [userId: <anonymous>] [ecid: 0000IptyLrL9_aY5TrL6ic1DBOS_000009,0] [APP: soa-infra] File Adapter FileAdapterTriggerFilePOC [[
    BINDING.JCA-11042
    File deletion failed.
    File deletion failed.
    File : C:\Dibya\AttachmentTest\InputDir\TestFile3.txt could not be deleted.
    Delete the file and restart server. Contact oracle support if error is not fixable.
    If any one has faced similar issues, kindly provide pointers on how to resolve it.
    Regards,
    Dibya

    Hi,
    Using the file adapter, you can poll from multilple locations...
    Keep the following property in your .jca file
    <property name="DirectorySeparator" value="," />
    While giving the path in File Adapter configuration, keep comma and give the next location....then the file will be picked up from the locations you gave....
    Hope this helps...
    Thanks,
    N

  • Want to Archive(or)Delete the file after finish the processing tht message

    Hi,
       My scenario is File to File  scenario that is working fine. due to some performance reasons i want to Archive the file (in sender communication channel level) after finish the process . that means after genarting the file in the target directory  then only i want to delete the file in the source directory.
    Any solution for this.....
    Please suggest me .
    Regards
    Jain

    Thanks for your suggestions..
      But that (Delete, Archive) option is there in the sender comunication channel level.. i knew that and that is working fine  in my scenario... but  my requirement is i want to delete the file after finished the process.. because some times message was failed in the Mapping level. but i want for some enahanced functionality point of view i want to delete or Archiveing the file after finish the process that means after genarting the file into target directory....
    Any help will be appriciated.
    Regards
    Jain

  • How can I recover an involuntarily  deleted keynote file after trash?

    After 3 days of working in Keynote I moved several files to my new 250gb hard disk. Many files were moved to trash and deleted. My work in keynote was lost and I have tried everything to recover it. Can you help me with this..? Is there a trick to recover a deletd file from trash...? Is there a recover-data file in my computer..? Thanks
    Unease

    How can I recover an involuntarily deleted keynote file after cleaning trash ..?

  • An action that deletes all hidden objects

    Hello
    In a constant effort to save and place smaller files...I was wondering if there was a way to script illustrator files so that it deletes all the hidden objects.
    I end up with so many hiden objects in these files, I am sure that would be a great help, if I could set an action either inside of illustrator or through a script to drag and drop files onto to that would delete the hidden files.
    I cannot find any commands on this in the program, so I did not know if it is possible, but I figures I would try.
    thanks!
    babs

    Here's a script that I have to delete hidden layers in a file. It could be reworked to target page items. Remember you can only delete something if it is visible.
    --get a sourceFolder that holds the files to process
    set sourceFolder to (choose folder with prompt "Choose a folder with files to process:") as text
    -- get a list of files of the files to process in the sourceFolder
    tell application "Finder" to set workingFiles to (every file of folder sourceFolder) as alias list
    repeat with aFile in workingFiles
        tell application "Adobe Illustrator"
            open aFile
            set currentFile to front document
            tell application "Adobe Illustrator"
                set myLayers to every layer of currentFile
                repeat with i from 1 to count of items in myLayers
                    set myLayer to item i of myLayers
                    set locked of myLayer to false
                    if visible of myLayer is true then
                        set visible of myLayer to false
                    else if visible of myLayer is false then
                        set visible of myLayer to true
                    end if
                end repeat
                delete (every layer of currentFile whose visible is true)
            end tell
            tell application "Adobe Illustrator"
                set visible of (every layer of currentFile) to true
            end tell
            close currentFile with saving
        end tell
    end repeat

  • How to delete .pdf file after viewing in SAP

    Hi,
    I've a program to show a pdf file within a SAP window using the open document method form the class cl_gui_pdfviewer. Now I want to delete the pdf file once I choose the back button or exit the program. How can I do that.
    In the PAI for the screen showing the pdf file, I have a case statement to perform the following
      When 'EXIT'
         call method my_pdf_viewer->close_document.
            .....    <--- some coding to try deleting the pdf file
         leave program.
    endcase.
    It seems that the pdf file is still in use by the program and cannot be deleted before leaving the program. Please help.
    Thanks in advance,
    Francis

    Hi All,
    I have had this issue and have finally resolved it.  Here's how:
    you need to destroy your custom container and html viewer control AND flush the front end cache.  This releases the lock on the file and lets you then delete it.
    Here's an example code:
    When 'EXIT'
    call method my_pdf_viewer->close_document.
      CALL METHOD my_pdf_viewer->FREE
        EXCEPTIONS
          CNTL_ERROR        = 1
          CNTL_SYSTEM_ERROR = 2
          others            = 3
      IF SY-SUBRC is initial.
        free my_pdf_viewer.
      ENDIF.
    this is the custom control parent container that contains the html control
      CALL METHOD MY_CONTAINER->FREE
         EXCEPTIONS
           CNTL_ERROR        = 1
           CNTL_SYSTEM_ERROR = 2
           others            = 3
      IF SY-SUBRC is initial.
        free my_container.
      ENDIF.
      CALL METHOD cl_gui_cfw=>dispatch.
      CALL METHOD cl_gui_cfw=>flush
            EXCEPTIONS CNTL_SYSTEM_ERROR = 1
            CNTL_ERROR = 2.
    ... <---- Delete PDF file (Delete Dataset xxxxxx.pdf)
    leave program.
    endcase.
    The other issue brought up is probably a permission issue -- trying to read the file from the presentation server versus a mapped drive that the SAP backend can access.  I read pdf files from a shared drive that the SAP backend can read/write to and it picks it up and displays just fine.
    Cheers,
    Matt

  • Thin Horizontal Lines visible within PDF file after OCR run

    I print to PDF(Acrobat 9.1 Pro), from an imaging application where the images are stored and managed as 300dpi TIFF(Group 4) B&W.
    The PDF file is produced with no issues.  At this time I run the OCR process to capture the type written data.  As the OCR process works it's way throught the file, the PDF is re-written with both OCR data and thin black horizontal lines every 2/3 of a inch down the page.
    These lines will be saved with the file and print out.
    How do I eliminate these lines?

    I had this problem too.  I'm using Acrobat Pro 9.4 and after OCRing a doc it had horizontal lines running across the page.  We were able to fix it by first Optimizing the document and then OCRing it.
    Document > Optimize Scanned PDF
    When finished, Document > OCR Text Recognition > Recognize text using OCR
    Hope this helps

  • Save or delete movie files after syncing???

    can i delete the movie files on my pc that i already have synced in my apple tv??? or do i have to save them and sync them again the next time that i want to add another movie into the apple tv???

    That depends on your setting!!
    If you have checked the option to copy the files into your iTunes folder -> you can delete the original. If you have unchecked the option -> keep the file, otherwise it's gone!
    What SjMulder was referring to: If you delete a file from the Finder but not from iTunes' library, it will probably not get deleted from ATV. You'll still have it in iTunes with an exclamation mark (for "file not found"). I wouldn't recommend that strategy, you basically mess up your whole library.
    It all boils down to: If you sync a movie, you have to have two copies of it, one on your computer (or external storage), one on the ATV. ATV is not a device to extend your disk space.
    Message was edited by: Christoph Drösser

  • D delete encrypted file after zipping done.

    Hi,
    i m developing backup project in which transffer doen through RMI
    and first we encrypt files and then zip it and send over network to server;
    Now what i have faced, is when zip is done , i can delete file inside local machine called (*.enc) files (encrypted files) which is directly stores at server, not at client side.
    but i cant delete file to be chosen as backup file.
    e.g. if i select abc.doc file as backup
    it will first encrypt to (abc.doc.enc) then zip it
    now i want to delete it from local machine abc.doc.enc.
    what the code...
    it wll delete original source file....... thts danger..
    Thanks
    give me solution
    ghanshyam

    In short: you can't delete a file.
    Did you close all accessing streams before deleting? Has something else a lock on the file?

  • Creating an action that treats all files in a directory

    How can I make an action which changes the picture size and resolution for all files in a directory and saves the new versions of the files in a subdirectory?
    Thanks

    Macro Details wrote:
    First create your Sub directory. Then start the Action. Open file, Resisize save as (to Sub directory) then close the file.
    Now: File- Automate-Batch. Select your action and your folders and overide the open Command and the Save As Command.
    Frankly Norbert I think the Image processor way is easier but to each his own as they say.  

  • Deleted RAW file after "Open with External Editor"

    I opened a file in PS using the "Open with External Editor" command and saved and it saved the update in Aperture but I needed to make anothe change so I did the same as before using the "Open with External Editor" command. Aperture created another "version" so I attempted to delete the version and it deleted all the versions as well as the "Master" RAW file. I went into my trash to find the RAW file and PS file that I wanted to keep but the RAW file was not there. I don't understand why it would put the PS file in the trash but the RAW file is nowhere to be found. Is there another place that it would go?
    Dual 2.7 G5   Mac OS X (10.4.8)   5GB RAM

    If the master was inside the Library then after deleting it, should be in the Trash, inside a folder called Aperture.
    If it was a referenced master it should be still in the location it was unless you ticked the box 'send master to trash', in that case it'll be the same as if it was inside the Library.

  • IDOC-FILE {A new Line auto Created at app server in file after mapping }

    Hi.
            In my 2/3 objects based on Idoc to file scenario.
            when i send idoc... ( having n entries  )
            and
            the created file at recieciving system has n records but
            problem is that a new line is inserted after n records.
           Can u suggest where i done mistake.
    thanks.
    Sridhar.

    Hey
    they there is some substructure which has .endSeparator as 'nl'
    moreover we dont need to give .endSeparator for main structure at all.
    <main>
    <substructure>
    <name>----</name>
    </substructure>
    </main>
    here even if u give substructure.endSeparator as 'nl'.then also a new line will be generated in the end.
    you can give substructure.endSeparator as comma(,).and new line won't be generated
    thanx
    ahamd

  • How to delete log file after zipping in batch

        
        **please check my code ... and suggest any changes to be made ... i m able to zipp the logs but not able to delete those logs.........
            thanking you...
            this is my code....
            @echo off
            set zip="C:\Program Files\7-Zip\7z.exe"
            rem Findout Month, Year and Date
            FOR /F "tokens=1,2,3,4 delims=/ " %%A in ('Date /t') do set year=%%D
            FOR /F "tokens=1,2,3,4 delims=/ " %%A in ('Date /t') do set month=%%B
            FOR /F "tokens=1,2,3,4 delims=/ " %%A in ('Date /t') do set day=%%C
            rem Solve problem Year start and adding 0 in month
            if %month% EQU 01 (
            set month=12
            set /a year=%year%-1
            ) else (
            set /a month=%month%-1
            if %month% LSS 10 set month=0%month%
            rem Set file names for last month file.
            set lastmonthfiles=server.log.%year%-%month%-
            %zip% -tzip  a -y "%lastmonthfiles%.zip" %lastmonthfiles%*
            if exist %lastmonthfiles%.zip(
            DEL server.log.%year%-%month%-*
            ) else (
                echo file not found
                pause

    Actually it is only the 7Z filemanager that can delete files using the "Move" command and the "Delete after archiving" option.
    if EXIST %lastmonthfiles%.zip ( DEL server.log.%year%-%month%-* ) ELSE echo zip not found
    ¯\_(ツ)_/¯

  • Can I delete laptop files after backing up?

    I am an art student and my computer only has 70 gb of space left and is running pretty slow. Is it possible to delete all my files on my laptop because everything is backed up on my external hard drive? Bad idea?
    I'd appreciate any feedback  - thanks!

    You clearly have limited if any experience with any qualified backup tool.  And your posts from last night indciate your actual age, so the lack of experience is not surprising.
    A backup in a system like TimeMachine or CarbonCopyClone will eventually be rolled off of the disk to make room for more recent backups.  Then you have no copies.
    Please spend more time reading and less time responding.  You will learn more that way.  Then eventually you will have something to actually contribute.
    You can start learning by reading posts from me, Network23, stedman1, Camelot.
    None of them suggest deleting from internal drive after it is on the backup.
    But you shold follow your own advice.  Then live the consequences.  You will be less likely to give that advic again.

  • Deleting imovie files after export

    Can I delete my imovie folders for movies that i have finished and exported to a .mov file? The folders with the original imovie files are huge (17 gig on average) and I need the drive space. To make dvd's in the future do I only need the idvd project file and the exported .mov?
    thanks,
    Craig

    Welcome to the forum, Craig.
    To make dvd's in the future do I only need the idvd project file and the exported .mov?
    To edit a DVD later you need 1) the iDVD project file and 2) the source movie you originally included on that DVD.
    If you exported the iMovie project to a movie for iDVD, you don't need to keep the iMovie project any longer. You need to keep it only if you haven't exported the project to a movie for iDVD. If you still have the movie, it's okay to trash the entire iMovie project folder.
    Note that iMovie 4 lets you make an iDVD project without exporting the iMovie project to a new movie.
    Karl

Maybe you are looking for