title: how can i make all the filenames the same length by adding spaces to it?
body: <p>i want to make the filename+spaces=211 characters
  but the problem is that if the file name characters = 30</p>
  
  <p>i would need  181 spaces</p>
  
  <p>while if file name characters = 80</p>
  
  <p>i would need  131 spaces</p>
  
  <p>i have tried advanced renamer</p>
  
  <p>tags options + spaces .</p>
  
  <pre><code>&lt;Name&gt;                                                                                                                                                                                                                
  </code></pre>
  
  <p>.. 
  and even this script in the scripts section</p>
  
  <pre><code>var maxLength = 25;
  var name = item.name;
  var date = app.parseTags("&lt;Year Modified&gt;&lt;Month Modified&gt;&lt;Day Modified&gt;");
  var numSpaces = maxLength - name.length - date.length;
  var spaces = "";
  for (i = 0; i &lt; numSpaces; i++) spaces += " ";
  return name + spaces + date; 
  </code></pre>
  
  <p>but it give me this error 
  <a href="https://i.stack.imgur.com/d1mtC.png" rel="nofollow noreferrer">name is not defined in the line 3</a></p>