I've had some luck with simple scripts, but this one is out of my league.
I'm trying to write a script that goes into a subfolder called "Images" ( 2 levels down), sorts all files according to size and renames them with a fixed sting and an increasing counter.
/ <-script is run in root folder
-Folder 1 <-one level down
--Images <-fixed name for this subfolder (2 levels down from root)
---file.jpg,filex,jpg,filey,jpg <-files in folder above, original file names are random
I would like the files in the "Image" sub folders to be sorted according to size and renamed "img001.jpg , img002.jpg, img003.jpg" etc. The counter needs to start from 0 for each Images folder. The files always have the jpg extention.
I would appreciate a working script :-) but if its too much trouble I'd be more than happy with a skeleton code that I can try to fill on my own..
Thanks in advance!