I've just started using Slack, and one of the things I was excited about was various integrations. I want to post to Slack when items in a certain Dropbox folder are added/modified. I can set up an IFTTT rule that talks directly between the two services, but it's limited because it's a) slow and b) doesn't look inside subfolders.
I know the basic Hazel rule setup I need for this:
1 if kind is folder --> run rules on folder contents
2 if date last matched is blank --> post new file message
3 if date last modified is after date last matched --> post updated file message
I just don't know how to get Hazel to do the message posting on my behalf. The Slack desktop app appears to have no AppleScript support. Perhaps I can use a command line tool that can access Slack and run a shell script? Does anyone have experience with any of the CLI tools here? https://api.slack.com/community