fixed applescript so it launches correctly