From 9d3cd36b4b290e2bae277b4631bb320af797bc03 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Thu, 13 Feb 2020 16:38:37 +0100 Subject: [PATCH] Put the LyX window frontmost automatically on Mac on successful reverse search --- development/MacOSX/lyxeditor | 1 + 1 file changed, 1 insertion(+) 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." -- 2.39.5