Execute applescripts in main thread
provide new function in EmacsApp (because performSelectorOnMainThread acts on
to NSObjects and their methods).
AppleScripts are supposed to be executed in main thread only.
Maybe that addresses an occasional crash that has been present for a long time.