Can Hazel kick off a command?

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

Moderator: Mr_Noodle

Can Hazel kick off a command? 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.
gvantass
 
Posts: 15
Joined: Tue Aug 12, 2014 1:02 am

Re: Can Hazel kick off a command? 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.
Mr_Noodle
Site Admin
 
Posts: 11195
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Can Hazel kick off a command? Tue Apr 02, 2019 6:42 pm • by gvantass
Excellent, thank you Mr Noodle! Off to the documentation I go!
gvantass
 
Posts: 15
Joined: Tue Aug 12, 2014 1:02 am


Return to Support