Fixed AppleScript so Safari isn't launched if it isn't already running.

The script runs some AppleScript by calling out to the osascript command line utility, and passing it some text (ie the AppleScript to execute) through its stdin; this was launching Safari even if it wasn't running, and this version fixes that bug.  See this Stack Overflow question for more information:

http://stackoverflow.com/questions/16064957/how-to-check-in-applescript-if-an-app-is-running-without-launching-it-via-osa