Do you mean finder tags? Please provide an example word file with the dates and the exact tag name you want from each date.
Honestly I don't see the utility in doing that. Do you realize that a Finder Spotlight search can search for text in the contents of the file? So you could just as easily (maybe easier) later search for the dates of interest. You could even create a Finder Saved Search to do this. Maybe if I understood your system, how you plan to use these tags later, it would make more sense to me.
Having said all that, I think you would need to do something like this:
- Create a Macro with a Folder trigger to get the path of each file as it is added to the folder.
- Save the Word file as a plain text file (temp file)
- Use a For Each action of the Substrings In collection using RegEx to find all of the dates
- Use the KM Set File Attribute action to set the tags for that file.
I hope that helps you get started. If you still need help, feel free reply with more details and real-world examples. Please read:
Tip: How Do I Get The Best Answer in the Shortest Time?