Automating Handbrake

Can AppleScript or Automator be used to eject a disk “after” Handbrake has run (i.e. A disk has been processed a DVD)? I tried to post it in automators but I don’t know how to write scripts, to begin with. Therefore, I’m posting it here.

I tried to do that years ago and never found a way to do it.

At the time, the “best” alternative was to use the command-line tool (HandBrakeCLI ?) and run the eject command after it finished. However, that only worked well for movies where I wanted to rip the main title, not for DVDs of TV shows, etc.

It’s been a long time since I used HandBrake, though… I moved over to MakeMKV, and even that has been several years.