I am looking to get a script written to run on a folder in mac os. I want to be able to grab some numeric text from the clipboard, which will normally be a string of numbers, or a string with alpha and numerics but where the numerics are the important part.
The folder will contain files with alpha numeric names and I want to use the numeric data collected from the clipboard to sort the files with the same numeric data into a new folder within the original folder.
The actual solution is to sort photo files with file names like 80A1234.jpg. when they are in a folder. The folder will contain a cards worth of shot photos so sequential file names. When someone sends me an [url removed, login to view] with the files they want I want to be able to copy from the email to the clipboard and then sort the files with the numbers that have been selected into a new folder called 'Selects' that is within the original folder. Only the last 4 numbers are important as the first few character will always be the same. The above format may change but there is always four numeric characters together near the end of the file name before the file extension.
This could run as a folder action or a stand alone program.