title: Batch file renaming – inserting text from a list (in Python or Java)
body: <p>I'm finishing a business card production flow (excel > xml > indesign > single page pdfs) and I would like to insert the employees' names in the filenames.</p>
  
  <p>What I have now:</p>
  
  <pre><code>BusinessCard_01_Blue.pdf
  BusinessCard_02_Blue.pdf
  BusinessCard_03_Blue.pdf (they are gonna go up to the hundreds)
  </code></pre>
  
  <p>What I need (I can manipulate the name list with regex easily):</p>
  
  <pre><code>BusinessCard_01_CarlosJorgeSantos_Blue.pdf
  BusinessCard_02_TaniaMartins_Blue.pdf
  BusinessCard_03_MarciaLima_Blue.pdf
  </code></pre>
  
  <p>I'm a Java and Python toddler. I've read the related questions, tried this in Automator (Mac) and Name Mangler, but couldn't get it to work.</p>
  
  <p>Thanks in advance, 
  Gus</p>