From: Stephan Witt Date: Thu, 13 Feb 2020 15:38:37 +0000 (+0100) Subject: Put the LyX window frontmost automatically on Mac on successful reverse search X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=9d3cd36b4b290e2bae277b4631bb320af797bc03;p=features.git Put the LyX window frontmost automatically on Mac on successful reverse search --- diff --git a/development/MacOSX/lyxeditor b/development/MacOSX/lyxeditor index 7431b3b991..670dea2228 100755 --- a/development/MacOSX/lyxeditor +++ b/development/MacOSX/lyxeditor @@ -90,6 +90,7 @@ if [ -n "$LYXPIPE" -a -p "$LYXPIPE".in ]; then while read line ; do echo LyX said: $line done < "${LYXPIPE}".out || { echo "Cannot read from lyxpipe." ; exit 2 ; } + test -x /usr/bin/osascript && /usr/bin/osascript -e 'tell application "LyX" to activate' else echo "Our best guess sets lyxpipe as ${LYXPIPE}" echo "But the lyxpipe could not be found."