I took a shell script form this post http://www.noodlesoft.com/forums/viewtopic.php?p=3447 the text of which was
- Code: Select all
/Applications/HandbrakeCLI -i "$1" -o "${1%avi}"mp4 --preset='iPhone & iPod Touch'
I amended it to read:
- Code: Select all
/Applications/HandbrakeCLI -i "$1" -o "${1%.mkv}.m4v" --preset="Universal" -v
Handbrake runs just fine and does the encode as expected, however, I was expecting that it would remove the .mkv from the filename and add .m4v instead. It isn't doing this though, it is just appending .m4v to the end of the filename
What am I missing? Is there a simpler way to rename a file with Hazel after handbrake has encoded it?