Batch Process Problem

Question:  How do I “Add” multiple TIFF files to a Batch Process so I don't get the "what page" question?

The PP9 Batch Process Added – OPENED - files, processed according to my script, then saved the result to new type & folder.

X5, a recent purchase, does an IMPORT of TIFFs instead of an OPEN and wants to know what page I want to load.  Answering this on each file defeats the purpose of batch processing.

 

Any ideas on how I should write the script?

If this is a duplicate (?? triplicate ??) sorry.  I have not done this before.

  • Hi,

    First you record the actions you like to do. And then save the script of actions you made.
    Second. executing the script is done via theBatch Process dialouge.

    RECORD SCRIPT

    1. In Photo-Paint go to Windows>Dockers>Recorder
    2. Click the"start/Record" button on the Record Docker.
    3. Now you are recording every step you do to your work.
      For example image adjusting  or whatever you like to record.
      It HAS to be something you like to be repeated for all other images later on.
    4. This means you record your actions you make and SAVE the script.
    5. Calle/name the script anything you like and save it.
    6. Now go to the Batch Process dialouge under File>Batch Process

     

    BATCH PROCESS

    1. File>Batch Process
    2. Batch process have two windows in the dialogue.
    3. In the top/upper window search/select and add all images you like to make the same action to.
      Meaning repeting the recorded action/script you made with the recorder docker
    4. Select a folder you like all images saved into.
    5. Select a file format. In the file format in the BacthProcess you can choose TIFF
    6. Click PLAY
    7. Click ok and breew some coffee and wait till its finished.

     

    • Stefan,

      Thank you for the detailed post.

      What you write is exactly what I have been doing.  But, when the Batch process opens the TIFF file, the "Which Page" box appears and the Batch Process stops.  The problem is when I add a TIFF file, not when I save to TIFF.

      Canon told me they have always had two page TIFF files.  So, the only change is me going from PP9 to X5. 

       In the next update to X5, maybe Corel will include the previous process and call it  Batch-PP9

      I have been doing this with PP9 for 10 years with no problem.  (That is a lot of Batch processesTongue Tied.

      Thanks, again.

       

      • Hi.

        Is there a record option in Corel Draw X6?

        I am wanting to create scripts but I am somewhat a novice at this. What I am wanting to create a script to do is:

        * Select a specified text block

        * Replace this text block with a defined text block

        * Save the file as a previous Corel Draw file (ie. v14)

        * Export to Web using a specified file path using the exist file name as a specified file type, replacing the existing file.

        I want the script to run as a loop within a specified directory as I have several hundred Corel Draw files that need this text block to be updated.

        Regards,

        Dave.

        • dmarkey said:

          What I am wanting to create a script to do is:

          1. Select a specified text block
          2. Replace this text block with a defined text block
          3. Save the file as a previous Corel Draw file (ie. v14)
          4. Export to Web using a specified file path using the exist file name as a specified file type, replacing the existing file.

          I have several hundred Corel Draw files that need this text block to be updated.

          Sounds like a job for print merge, then export from draw with this perhaps. Free info, and macro. :-)

           

          • Hi.

            I have persisted enough to create a macro to do what I want, which is:

            * Find specified lines of text

            * Replace the text

            * Save as a previous version using the current filepath and filename.

            * Close the active drawing file

            The script is as follows:

            Public Function FindReplace(ByVal str As String, ByVal toFind As String, ByVal toReplace As String) As String
                Dim i As Integer
                For i = 1 To Len(str)
                    If Mid(str, i, Len(toFind)) = toFind Then   ' does the string match?
                        FindReplace = FindReplace & toReplace               ' add the new replacement to the final result
                        i = i + (Len(toFind) - 1)               ' move to the character after the toFind
                    Else
                        FindReplace = FindReplace & Mid(str, i, 1)        ' add a character
                    End If
                Next i
            End Function

            Public Sub TextReplace()
                Dim s As Shape
                ActiveDocument.BeginCommandGroup "Text Translate"
                For Each s In ActiveDocument.ActivePage.Shapes
                    If s.Type = cdrTextShape Then
                        s.Text.Story = FindReplace(s.Text.Story, "1175 Blue, 1178 Black", "Background - White 3930")
                    End If
                Next s
                ActiveDocument.EndCommandGroup
               
                Dim SaveOptions As StructSaveAsOptions
                Set SaveOptions = CreateStructSaveAsOptions
                With SaveOptions
                    .EmbedVBAProject = False
                    .Filter = cdrCDR
                    .IncludeCMXData = False
                    .Range = cdrAllPages
                    .EmbedICCProfile = True
                    .Version = cdrVersion14
                End With
                ActiveDocument.SaveAs ActiveDocument.FullFileName, SaveOptions

                ActiveDocument.Close
                ActiveDocument.Activate
              End Sub

          • Does Corel not allow you to batch process cpt files? When I click on the folder where they are stored I get a error message telling me that some of the files are not able to batch process. I can enter them one at a time but I probably have close to a thousand of them. I would like to be able to use them in AI. Perhaps I'm doing something wrong. Right now I have the evaluation version and it doesn't look good.

             

            • Hi, Yes you can batch process cpt files. It is the file format for photo-paint. Open your cpt files and select file for At to batch. But if you like to process cpt file formats to AI file format, remember that CPT is bitmap, and AI is vector file format. Before I say too much, can you explain what you are trying to accomplish in the end. If you were working in CorelDraw I would recomend Fil converter in Macro M. Bit you say CPT files to Ai.
              • JohnL said:

                Does Corel not allow you to batch process cpt files? 

                Are all the files .cpt? Maybe there is an ai in there. Try just 2-3 at first with the script and see if it now works.