Page 1 of 1

betterzip automation

PostPosted: Sun Jan 28, 2018 6:45 pm
by t2clej
I would like to do the following and can not seem to get things to work.

I want hazel to monitor a folder and when a new file arrives, I want open betterzip and use a preset to automatically zip and encrypt and then copy to dropbox. All of this without having any user interaction. Any advice would be helpful. I tried using the script on Hazel automation page but get error with regards to "theFile".

Thank you.

Re: betterzip automation

PostPosted: Mon Jan 29, 2018 9:41 am
by Mr_Noodle
'theFile' is a variable that contains the file being processed by the rule. You need to pass that on to BetterZip for it to process it.

Re: betterzip automation

PostPosted: Mon Jan 29, 2018 7:17 pm
by t2clej
Mr_Noodle wrote:'theFile' is a variable that contains the file being processed by the rule. You need to pass that on to BetterZip for it to process it.


This may be outside the Hazel forum expertise but do you know how to pass that variable to BetterZip?

Re: betterzip automation

PostPosted: Tue Jan 30, 2018 11:36 am
by Mr_Noodle
Via AppleScript. I don't know BetterZip's AppleScript support but if it does have it, Hazel will pass in an alias to the file being processed.