Run a function on triggers. The little brother to Hazel for OS X