Page 1 of 1

Hazel & Applescript & Handbrake

PostPosted: Sat Jun 22, 2013 8:39 am
by rgarcia1801
Hello there,

I have been using hazel for a few months and I believe is a great tool. As many of you, I am trying to automate my download/conversion process utilizing the super-power of Hazel/Applescript/Handbrake. I have seen many scripts out there but unfortunately, I haven't been able to make them work.

My setup is simple.
Download movie - Folder - Convert it - Place it in iTunes - Delete Source.

Is there anything simple out there to accomplish this?

Thanks in advanced.

Re: Hazel & Applescript & Handbrake

PostPosted: Mon Jun 24, 2013 1:27 pm
by Mr_Noodle
Try searching the forums as I believe there have been a few scripts posted here already.

Re: Hazel & Applescript & Handbrake

PostPosted: Mon Jun 24, 2013 3:05 pm
by sjk
rgarcia1801 wrote:I have seen many scripts out there but unfortunately, I haven't been able to make them work.

Someone might have specific help to offer if you mention which you've tried and details about what didn't work.

Re: Hazel & Applescript & Handbrake

PostPosted: Wed Jun 26, 2013 9:55 pm
by Gigamesh
rgarcia1801 wrote:
My setup is simple.
Download movie - Folder - Convert it - Place it in iTunes - Delete Source.

Is there anything simple out there to accomplish this?

Thanks in advanced.


Conversion is easy if you use Handbrake CLI. There are several scripts on the forum already.

I convert the movie in the folder I store them and it is placed there by Couch Potato or SickBeard. If you are moving from a specific folder, just add a simple move rule to that folder.

To add it to iTunes, I actually use iDentify. With the iDentify settings set to process automatically, add to iTunes and close when finished, this is all done with one rule which is simply to just open the file in iDentify. iDentify does crash when multiple files are added in quick succession. To get around this, just throw in the script
Code: Select all
tell application "iDentify"
delay 20
end tell


This just delays the addition of the next file to lookup.