Hi, I'm working on a rule that matches the current tags a file has to a text file with specific keywords.
The idea is to append all the tags not listed in this text file to the filename, delete them and only keep the ones that match the keywords in the text file.
I've been able to work out most of this except the final bit "keeping the ones that match the keywords"
The current implementation works something like this
>read the tags
>compare them with the text file using applescript and return the keywords that were matched as a list
>delete all tags
>re-add the tags from the list
the bolded part is where I'm stumped
I've tried to just make a dynamic tag using the list as a custom attribute but that just gives me huge concatenated tag instead of individual ones. Is there some way to set this up that doesn't require a long hardcoded list of dynamic tags?