4 Replies Latest reply: May 8, 2013 7:17 PM by Colbster.com
Phillyman Level 1 Level 1 (0 points)
Hi guys and gals,

I have a flaw in my automator workflow and NO clue where the mistake is...

I have all kind of different files which I would like to clean up and always have the same file hierarchy.

So here is what we have at the beginning:

25 files in a folder sequentially correct with formatting roughly like this:


and so on...

All in sequence but with different names, if I sort them by Name in the list view, everything is correct it just doesn't look very nice.

I wrote a workflow with these parameters:

1. Get specified Finder items (drag and drop the files), with them sequentially in the correct order
2. Make Finder Item Names Sequential
new name Project Alpha p1eX
start numbers at 1

My example output text is correct (Project Alpha p1e1) BUT for whatever reason the last file in my list (e25) is now in the correct format but as file number 1 instead of 25!!! This is for all files soo 2 is 24 and 24 is 2.....

This logically is exactly reverse from what I need it to be and a LOT worse since now the title isn't what the file contains! ;(
If I have to choose I'd rather be thought of as a bad file namer than a person who messes up the order of the files and as such ruins solid work.

I've tried reversing my name list so 25 is on the top but still the end result is wrong.

I need to maybe point out that the date stamps on the files are all over the place and certainly not sequential.

Any clues as to why it is doing this and where my error is?



Message was edited by: Phillyman clarified file naming

macbook, Mac OS X (10.6.3), imac 20 inch and macbook (metal)
  • 1. Re: Automator sequential renaming... Why reversed?
    Azqi Level 3 Level 3 (710 points)
    I'm guessing (from lack of detail) that you're dragging-and-dropping from the list view of a Finder window. I don't know why, but that is very problematic. It seems like a good idea since you can click on the headers to sort the files first. Unfortunately, that order is not retained when dropped into Automator.

    Best to drag from the column view of a Finder window to the Automator action. Tip: just dropping some files into a blank area of the workflow will automatically add the action with those files.

    Once you have the files in the Get Finder Items action, then you can reorder them by dragging them up or down within the action.
  • 2. Re: Automator sequential renaming... Why reversed?
    Kelly Coull Level 4 Level 4 (1,415 points)
    Try to add a +Sort Finder Items+ and tell it to sort by Name after your +Get Specific Items+.
  • 3. Re: Automator sequential renaming... Why reversed?
    Phillyman Level 1 Level 1 (0 points)
    Sorry it took me a couple of days...I have been out of computer/internet reach for a couple of days! Sooo, thanks for the sort idea.... Tried it and it seems to have solved my issue.

    Thanks for the help,

  • 4. Re: Automator sequential renaming... Why reversed?
    Colbster.com Level 1 Level 1 (0 points)

    When you search, it's also not easy to reverse the order if you're viewing by name. If you click on the column heading "Name" nothing happens in Mountain Lion 10.8.3. I can fix it if I select view by none. Which makes little sense.


    Two steps forward, one step back...