title: How to append a random string to filenames using Script Editor [Mac OS]
body: <p>I have a folder filled with pdf files.</p>
  
  <p>filename_1.pdf<br>
  filename_2.pdf<br>
  filename_3.pdf<br>
  etc...</p>
  
  <p>I am looking for a way to go from those filenames to something like :</p>
  
  <p>filename_1973878763487.pdf<br>
  filename_27523765376346.pdf<br>
  filename_326537652376523.pdf  </p>
  
  <p>I came across the following script that changes filenames to random numbers :</p>
  
  <pre><code>  tell application "Finder"
      repeat with this_item in (get items of window 1)
          set name of this_item to ((random number from 1000 to 9999) &amp; "." &amp; name extension of this_item) as string
      end repeat
  end tell
  </code></pre>
  
  <p>The script outputs something like this :  </p>
  
  <p>3598.pdf<br>
  7862.pdf<br>
  8365.pdf</p>
  
  <p>So i need a way to append the random numbers to the original filename.</p>