Put the LyX window frontmost automatically on Mac on successful reverse search

This commit is contained in:
Stephan Witt 2020-02-13 16:38:37 +01:00
parent aca95619b8
commit 983da7d6de

View File

@ -90,6 +90,7 @@ if [ -n "$LYXPIPE" -a -p "$LYXPIPE".in ]; then
while read line ; do while read line ; do
echo LyX said: $line echo LyX said: $line
done < "${LYXPIPE}".out || { echo "Cannot read from lyxpipe." ; exit 2 ; } 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 else
echo "Our best guess sets lyxpipe as ${LYXPIPE}" echo "Our best guess sets lyxpipe as ${LYXPIPE}"
echo "But the lyxpipe could not be found." echo "But the lyxpipe could not be found."