On MacOSX, use Applescript to force the editor to the foreground

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>