Page 1 of 1

file Action: Post file content that API

PostPosted: Tue Aug 11, 2015 6:58 pm
by Helmi
hi,

I wanted to post new files that are put in a special directory to a REST API endpoint. I tried to do it when th XMlHttpRequest but the JavaScript interpreter built into Hazel doesn't seem to support it.

Any idea how this could be done otherwise?

Thanks,
Frank

Re: file Action: Post file content that API

PostPosted: Wed Aug 12, 2015 11:23 am
by Mr_Noodle
Are you using the Run shellscript action? If so, not that you have to supply the interpreter. Hazel doesn't have any interpreters built-in. Also, make sure you are able to run the script outside of Hazel.