Create Alias in a Folder Based on File Name

I want to put an alias of a file into a different folder based on the file’s name.
I currently have about a dozen Rules of the form:
Each of these Rules has a different <literal text string> and corresponding <chosen folder>.
I’d like to simplify these dozen Rules into a single Rule.
Is there any way to select a <chosen folder> based on a variable, i.e., a match to a file name?
Alternatively, can I combine these multiple Rules into a single Rule that uses something like a CASE statement or an IF THEN ELSE statement?
(Yes, I realize that Hazel provides for nested conditions, but I don’t see a way to have multiple Actions; in other words, I don’t see a way to sandwich a different Action within each of the nested conditions.)
I currently have about a dozen Rules of the form:
- Code: Select all
if <name> <contains> <literal text string>
Do <make alias> in folder <chosen folder>
Each of these Rules has a different <literal text string> and corresponding <chosen folder>.
I’d like to simplify these dozen Rules into a single Rule.
Is there any way to select a <chosen folder> based on a variable, i.e., a match to a file name?
Alternatively, can I combine these multiple Rules into a single Rule that uses something like a CASE statement or an IF THEN ELSE statement?
(Yes, I realize that Hazel provides for nested conditions, but I don’t see a way to have multiple Actions; in other words, I don’t see a way to sandwich a different Action within each of the nested conditions.)