This simple workflow allows you to easily hide and unhide folders in MacOS.
In order to hide a folder just highlight it in a finder window (or Desktop) and type the keyword 'hide' into Alfred.
In order to unhide the folder again, you first have to select the hidden folder. In order to do so, press the keyboard shortcut "Cmd + Shift + ." while in a finder window to show hidden folders (the hidden folders will look translucent). Then select a hidden folder and type the keyword 'unhide' into Alfred. If you don't want to see the hidden files after that, just use the same shortcut as above to hide them again.