AppleScript

Because I just couldn’t find ANYTHING close to this on the interwebz, I had to put together a simple AppleScript to batch rename files myself:

Simple AppleScript to easily batch rename multiple files sequentially. GUI asks the user to select files and input a name before renaming.

Enjoy 🙂

Share:
  • 5
  • 1

5 thoughts on “Just a simple AppleScript to batch rename files sequentially”

  1. “Krojamsoft BatchRename” Tool is a powerful tool, that allows you to quickly rename all the files in a specified directory. You can remove spaces, replace spaces with underscore, uppercase/lowercase filename, add a prefix/suffix, remove/replace strings and also catalog files by adding an incremental number to the file name.

    1. There are actually a dozen apps out there, doing pretty fine jobs with various file renaming techniques on macOS.
      I’d say “A Better Finder Rename” is probably one of the most advanced to use when it comes to such tools: A Better Finder Rename

  2. I use your batch rename script and it’s super helpful! I’m not very adept at coding so forgive me for my lack of knowledge. I’m after something that seems similar and I wonder if you might be able to help.

    I would like to batch flatten individual pdf files (with the Preview > Save as PDF option). I found an AppleScript online but it doesn’t work.

    1. Hi Alan
      Thanks for your feedback, glad that my script is helpful for you.

      Regarding flattening PDF files, I recommend looking into achieving this using an Automator app workflow, which should definitely be able to do what you‘re looking for. If not with the standard options, then this here might still work for creating PDFs: https://discussions.apple.com/thread/4101558

Questions? Suggestions? Let us know with a comment!

This site uses Akismet to reduce spam. Learn how your comment data is processed.