Watched Folder Tag & Sort

Hello,

I am new to Maestro and I am looking for some help on have a watched folder notify me when something is download so I can add a tag and the item is then sorted to the correct folder. For example I may download a jpg or png and sometimes it is a logo and other times it is a technical drawing. I want to be able to tag these so they go to the appropriate folder.

Many Thanks

Hi @kodama,

Welcome to Keyboard Maestro! Here's one example of how this could be done:

[Example] Watched Folder Tag & Sort.kmmacros (7.3 KB)

###Key KM Actions and Tokens Used
•%TriggerValue%: https://wiki.keyboardmaestro.com/token/TriggerValue

•Prompt for User Input: https://wiki.keyboardmaestro.com/action/Prompt_for_User_Input

•Switch/Case: https://wiki.keyboardmaestro.com/action/Switch_or_Case

•Set File Attribute: https://wiki.keyboardmaestro.com/action/Set_File_Attribute

•Move or Rename File: https://wiki.keyboardmaestro.com/action/File_Actions

2 Likes

What if two or more files are moved to the watched folder more or less simultaneously? How does the macro process both files?

I'm having some trouble getting the above macro to work. I have switched it to be triggered via Stream Deck button, rather than watching the download folder. My thought was this would be useful macro to run after reviewing the file, for example, in Preview app, rather than being prompted to tag every download.

Is this possible or am I going beyond the scope of this macro and need to come up with a bespoke solution?

Tag & Sort.kmmacros (8.5 KB)

Your problem is that the original uses %TriggerValue% which, for a watched folder, is the path to the "newly arrived" file, to reference that file later. Your changed macro's %TriggerValue% is the button pressed on your Stream Deck.

So yes, you'll have to make some changes. It's difficult (though maybe not impossible) to get "the file I last closed in Preview" -- would you be happy doing the re-tagging before you closed the file?

If you've time, make a new Forum thread where you describe what you want to do -- maybe include a link to this one if you want a similar "Prompt for tag to add" workflow.

Thank you @Nige_S, that makes sense! I've posted a new thread here... Help with a macro to move file to folder based on keyword variable

1 Like