Adding characters from start/end of names

Hello everyone,

In an effort to better understand DO's power and flexibility I was wondering how to add characters from start and/or end names. I could have easily used BulkRename utility and moved on but I would learn more of how these types of activities can be accomplished using DO.

Preferably I would like to setup a button and input what I would like to add. I know this is possible just wondering how?

Sure, use the Rename utility or place the equivalent commands in a button or menu item.

Select the files, hit the Rename button, and enter in the following fields:

Old name: .
New name: .

where and are replaced with any text you want.

Thank you MrC.

Hi MrC,

I setup a button to see what the results would be using this script: Rename PATTERN="" TO="--(a) but it places the extra text after the suffix.

Example

Amazon.pdf
Amazon.pdf--(a)

versus Amazon--(a).pdf

How do I correct this?

As per the pattern above for Old name/New name, use:

Rename PATTERN="." TO="--(a)."

Thank you again. I have an even more challenging (for me) renaming function that I do often (using a BulkRename utility) that hopefully and appreciatively you can help me with. I will create a new post shortly.