Page 1 of 1

Renaming with sequential numbers

PostPosted: 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

Re: Renaming with sequential numbers

PostPosted: 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.