Paint Shop Pro X2 Scripting - file name for batch of files to export?

I need to process a batch of files in Paint Shop Pro X2. For each file, I need to export the file as a jpg using a compression value of 25 and save it to a particular directory.

I know how to record the script and execute it via the batch processing menu. However, because the export process has its own file save as dialog, the file name gets hardcoded in the script and only a single file gets written. Each file overwrites the one before.

I could edit the script but I haven't found a reference manual to tell me how to create a variable for the exported filename based on the source filename.

Alternatively, I know batch processing lets you modify the target filename but I don't know how to get the export options without going through its file save as dialog.

Any suggestions?

Thanks in advance.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ZekeLAAuthor Commented:
I found the answer. Just use batch processing and Save as New Type set to JPEG. Then set the jpg options for that type to be the desired compression value.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Images and Photos

From novice to tech pro — start learning today.