Convert DTS to AC3 Script

Hello,
I have being working with 'a_freyer' to get the mkvdts2ac3 script working. After some trial and error, he managed to solve the problem he was presented with.
I feel obliged to share the outcome of this work now.
If you don't know what this script is, basically it converts your the audio from within your MKV file, if it's DTS (which isn't greatly supported in hardware) to a playable format, AC3 (or Dolby Digital). All this without touching the video. Pretty clever.
So now with Hazel, when a new file gets put in a folder, the script will automatically run and convert the file.
Please note, if you want to know how to use the script properly, please go to the authors GitHub page: https://github.com/JakeWharton/mkvdts2ac3
You can find my modified script here: https://github.com/cjmellor/MKVDTS2AC3-Hazel
I have being working with 'a_freyer' to get the mkvdts2ac3 script working. After some trial and error, he managed to solve the problem he was presented with.
I feel obliged to share the outcome of this work now.
If you don't know what this script is, basically it converts your the audio from within your MKV file, if it's DTS (which isn't greatly supported in hardware) to a playable format, AC3 (or Dolby Digital). All this without touching the video. Pretty clever.
So now with Hazel, when a new file gets put in a folder, the script will automatically run and convert the file.
Please note, if you want to know how to use the script properly, please go to the authors GitHub page: https://github.com/JakeWharton/mkvdts2ac3
You can find my modified script here: https://github.com/cjmellor/MKVDTS2AC3-Hazel