apple script is more reliable than just calling "open"