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
BATCH PROCESS
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 processes.
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: 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 have several hundred Corel Draw files that need this text block to be updated.
What I am wanting to create a script to do is:
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. :-)
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 iEnd 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.
JohnL said: Does Corel not allow you to batch process cpt files?
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.