Author Archive

A few days ago I read an article by Joachim Schlosser on how to handle downloaded files on the Mac using Hazel.

My first idea was that this could be easily achieved with Linux, last night I found some time to work on it.

It is based on inotify, a tool to watch files and folders for changes (like e.g. adding a new file to a folder).

Googling for the right way to pass the filename of an added file to a script I came across an answer on askubuntu which I then modified to the following (I removed the ‚-r‘ parameter which checks not only the one folder but all subfolders):

### Uwe

Uwe Ziegenhagen mag LaTeX und Python, auch gern in Kombination. Hat Dir dieser Beitrag geholfen und möchtest Du Dich dafür bedanken? Dann unterstütze doch vielleicht die Dingfabrik Köln e.V. mit einem kleinen Beitrag. Details zur Bezahlung findest Du unter Spenden für die Dingfabrik.