Automator/AppleScript Code for Placing Files into Folder
I am an intern at an architecture firm, and I would like to know if there is any way to code a program (using AppleScript or Automator) to complete this task:
Combine files that have similar file names into a folder and rename the file as the first file automatically. There are hundreds of files, and an expedient and efficient way of completing this task would be greatly appreciated.
For example:
I have files:
07-480-1.jpg
07-480-2.jpg
07-480-3.jpg
07-480-4.jpg
07-481-1.jpg
07-481-2.jpg
07-481-3.jpg
07-481-4.jpg
07-481-5.jpg
I want to select files names with similar characters (07-480 and 07-481) and place them into respective folders.
So the folders would be called
07-480-1
07-481-1
Any advice would be helpful.
Thank You!
OSX 10.9.5
MacBook Pro, OS X Mavericks (10.9.5)