Precompiled scripts

Converts our various AppleScripts to precompiled scripts, which I think will prevent this "unexpected token" issue we're occasionally seeing in Travis runs.