Fixed #224 (Failure to launch If app name has a quote in it) and added switch statement instead of using an if statement