I want to use parts of a file name to add specific Finder tags to a file. How can I do that, are there any scripts or applications available to automate this on OS X Mavericks? The only solution I can think of right now is Hazel, but this would be limited by the rule character of this application (choosing tags manually).
There's a command line tool called Tag (https://github.com/jdberry/tag) which allows you to specify file patterns.
Yes, you can use Automator to do this pretty easily.
There are other items in the Automator library you can pick to handle the selection of the files you want to process, but the 2nd and 3rd actions should stay the same for your needs.
Here's a screen-shot of my final Workflow:
Workflow vs Application: A Workflow is basically a set of actions that can only be run from inside Automator. So you'd save that workflow and to run it again you'd open it in Automator and press Run.
An Application is exactly like a Workflow, but you can use File > Export to publish it as an Application which can be run just like any other app on your computer.
Hope this helps!
This is a link to a .DMG that contains two different Automator applications that will get you started hopefully. It includes documentation which you should read first.
Keep in mind, these Workflows allow for user input because I didn't know exactly what you wanted to do. So they're probably not precisely what you want, but they should give you a good foundation to customize them for your needs.