Fix osascript command and add error message
Fix osascript command and add error message

Closes #63

ig0774/atom-latextools,msiniscalchi/atom-latextools,ig0774/atom-latextools,mperessotti/atom-latextools