writing app script to launch application, closes #183 and #187