Groups > Corel > Corel PhotoPaint 12 > Re: batch process .jpg vs. .JPG




batch process .jpg vs. .JPG

batch process .jpg vs. .JPG
Mon, 9 Apr 2007 03:27:59 -0400
When I batch process in photopaint I run into a problem that the created 
files end in .JPG when they should end in .jpg like the source files. (this 
is a problem on a linux/unix server as extensions and names are case 
sensitive so filename.JPG is not the same file as filename.jpg)

Is there a setting somewhere so photopaint will batch process files as .jpg 
instead of .JPG? 


Post Reply
Re: batch process .jpg vs. .JPG
Mon, 9 Apr 2007 11:25:26 +0100
Jeff,

Don't know about the settings in Photopaint,
but if you open notepad and paste the following,
then save as JPGRename.vbs and run it, it will do what you want.
You just have to change the folder it's pointing to.

Dim objFso, Folder, Images, Image
Set objFSO = CreateObject("Scripting.FileSystemObject")
'Change the Folder path
Set Folder = objFSO.GetFolder("C:\Documents and Settings\UserName\My 
Documents\My Pictures\")
Set Images = Folder.Files
For Each Image in Images
 If Right(Image.Name,3) = "JPG" Then
  'Change the file type to something else first
  Image.Name = Left(Image.Name,Len(Image.Name)-3) & "001"
  Image.Name = Left(Image.Name,Len(Image.Name)-3) & "jpg"
 End If
Next
WScript.Echo("Renaming Complete")

Hope this helps,

Cheers,

Andrew

"Jeff" <spamcop@nospam.com> wrote in message
news:46189bea_3@cnews...
>
> When I batch process in photopaint I run into a problem that the created 
> files end in .JPG when they should end in .jpg like the source files. 
> (this is a problem on a linux/unix server as extensions and names are case

> sensitive so filename.JPG is not the same file as filename.jpg)
>
> Is there a setting somewhere so photopaint will batch process files as 
> .jpg instead of .JPG?
>
>
> 


Post Reply
Re: batch process .jpg vs. .JPG
Wed, 11 Apr 2007 12:02:32 -060
On Mon, 9 Apr 2007 03:27:59 -0400, "Jeff" <spamcop@nospam.com>
wrote:

>
>When I batch process in photopaint I run into a problem that the created 
>files end in .JPG when they should end in .jpg like the source files. (this

>is a problem on a linux/unix server as extensions and names are case 
>sensitive so filename.JPG is not the same file as filename.jpg)
>
>Is there a setting somewhere so photopaint will batch process files as .jpg

>instead of .JPG? 
>
>

Can't say I've ever had the JPG problem.

I'd just get a decent file renaming utility that corrects extensions
to lowercase (zillions around) and rename when done with PP. I use an
early (pre-Java) version of The Rename by Herve Thouzard.  It saves
folder favourites which speeds up accessing one's normal editing
folder.

One could probably write a script to add to the batch process but it
would complicate the Save process.  You would get the save done within
the script and check "Don't Save" in the batch dialog.  Jpg quality
settings would have to be made in the script.  That preset in turn
could be done with another script.  Just too complicated.

Starman*
Post Reply
about | contact