Renaming with sequential numbers

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Renaming with sequential numbers Fri Apr 25, 2008 8:27 pm • by Denny
I was wondering if there was a way to sort files into subfolders and then rename the files using a sequential set of numbers (eg. starting from 100)

If not, is this something that having Hazel trigger an applescript could accomplish?

Thanks,
Denny
Denny
 
Posts: 1
Joined: Fri Apr 25, 2008 8:24 pm

Re: Renaming with sequential numbers Tue Apr 29, 2008 2:28 am • by Mr_Noodle
Hazel only renames with numbers as a side-effect when you add a file to a folder with the same name. It's not a "direct" feature, if that makes sense.

If you want more control over it, then yes, using AppleScript would probably work. You should figure out the behavior you want. For instance, do you want it to assign the lowest number available, or to use a counter that never goes down?

An example is if you have file-1, file-2, file-4 and you want to add a new file. Does it get named file-3 or file-5? Depending on what you want, it would be implemented a bit differently.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support

cron