Hi, Can anyone help me with the script as I’ve searched all over and cannot find something to do this.
I have a number of folders of files (1000’s) with generic filenames such as;
collection1-season2-image-dsc001.jpg
collection1-season2-image-dsc002.jpg
collection1-season3-image-dsc001.jpg
collection1-season3-image-dsc002.jpg
collection2-season1-image-dsc001.jpg
collection2-season1-image-dsc002.jpg…etc
I need a script which will examine the filenames and create a series of (un-nested) folders and move (not copy) the files into the folders within the original source folder.
So ideally I end up with my original source folder containing sub-folders such as;
collection1-season2
collection1-season3
collection2-season1 etc…
…with each folder containing any files having a filename starting with the folders’ name.
It would be ideal when starting the script if it would request how many characters of the file names to use when creating the folder names, say from character number 3 to character number 12.
I’ve had problems with folder actions so would rather have a drag N drop solution.
Surely there must be somthing out there already, if not can anyone provide me with some ideas for code (I can do a bit but am pretty inexperienced!)
Any help or advice is much appreciated.
Thanks, Ray
Model: MacminiG4
Browser: Safari 419.3
Operating System: Mac OS X (10.4)