re-implement using AppleScript

to support mounted BD images
replace osascript with pure python heuristics
switch from bash to python version

tested with dvd.iso, mounted BD, extracted BD, file.mp4
using names with whitespace and unicode characters