Automatically move files to folder (with specific words in the filename)

Hi everyone,

I’m looking for some help in creating a macro that automatically moves .txt and .pdf files from my Downloads folder to a specific folder based on keywords in the filename. Hazel handles this really well, but I'm trying to reduce the number of software tools I use, and I’m confident that Keyboard Maestro can do this (as it seems to handle almost everything!).

Thanks in advance!

Create a macro like this, and I think this should work...

In this example I move files from my downloads folder if the file contains the keyword txt.

Since I don't know exactly what you want, you will have to modify this macro.

2 Likes

I'm glad to see that Tigger is still great value around here! :tiger:

2 Likes

Oops. I think I typed that word manually, twice, making the same mistake twice.

Great, it works! Thank you. Just one last question: can I use the %TriggerValue% variable only with this macro, or is it okay to use it anytime I want to check a filename?

First, %TriggerValue% is a token, not a variable.

Second, %TriggerValue% is set to the value of the trigger for the macro, which, in this case, and possibly some other cases, is the name of the file. So the answer to your last question depends upon which trigger triggered your macro.

1 Like