I have various files / types, usually labelled in this kind of way:
000_160905_Iceman_Rumble_BA.jpg
There will be a variety of jpegs, PSD's, models etc and I need to find an automated way to file them away into various folders by date in some instances, by file types in other instances and by the initial of someone (BA).
Is there a way in AppleScript, where you can select certain characters from a file type (e.g the date in the file above), to automatically sync to another folder of my choice?
If anyone could help me here it would really save me!
Thanks
Best Answer
Here are some scripts that will help you. They are based on having some file selected in the Finder. The first one looks at each file, one at a time, and if the file's extension is jpg or png or gif, the file is moved to the Pictures folder.
The second script finds the last two characters before the extension, as in your "BA" at the end of your example file's name. Files are moved based on those last two characters. The script is not as tightly written as it could be but I wanted you to be able to read it and understand what is going on.
Those scripts will get you started. You can use scripts like this with Hazel, as mentioned by tubedogg earlier, to file items as they are added to a folder.