Page 1 of 1

Can Hazel kick off a command?

PostPosted: Mon Apr 01, 2019 10:11 pm
by gvantass
I'm trying to figure out if Hazel can kick off a command from a rule.

The desired outcome: Hazel moves video file to target folder then executes a command on the moved that converts the video to a different format (command: tag -i <$filename> -a) then moves converted file to a holding directory for manual sorting.

Also, some of these files come in sub-directories, so if Hazel could look into a new subdirectory created in Downloads, that would be fantastic, as well!

I don't know if this is even possible, which is why I'm asking.

Re: Can Hazel kick off a command?

PostPosted: Tue Apr 02, 2019 9:43 am
by Mr_Noodle
You can use "Run shellscript" to run arbitrary scripts that should do what you want. Check the chapter in the manual for more details.

To process files in subfolders, you need to set up a rule to do that. There's a chapter in the help for that as well.

Re: Can Hazel kick off a command?

PostPosted: Tue Apr 02, 2019 6:42 pm
by gvantass
Excellent, thank you Mr Noodle! Off to the documentation I go!