I want to rename selected files in the finder sequentially. To do this I have created an Automator workflow.

In the Automator workflow you can specify how many digits long you want the rename to be I.e. 3 = 001, 002 etc...

I would like this number to be inferred from the number of files selected.

Is this possible?

Thanks for any help!


  • As far as I know, you can't do this with Automator's drag & drop components, but you could do it with an AppleScript. Commented Jan 2, 2012 at 3:50
  • Ben, would a shell script (callable from Terminal or Automator) be a valid alternative for you?
    – nohillside
    Commented Jan 2, 2012 at 11:52
  • Thanks for the comments. Either an AppleScript or shell script would work great - I'll get on this at some point and post it. I just wanted to know whether I was missing something like a variable that I could use in the automator UI. Thanks again.
    – Ben Hinman
    Commented Jan 7, 2012 at 17:35

1 Answer 1


This is not possible with Automator. You can only specify the number of digits manually.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .