betterzip automation

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

betterzip automation 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.
t2clej
 
Posts: 5
Joined: Sun Jan 28, 2018 6:42 pm

Re: betterzip automation 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.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: betterzip automation 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?
t2clej
 
Posts: 5
Joined: Sun Jan 28, 2018 6:42 pm

Re: betterzip automation 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.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support