]> git.lyx.org Git - features.git/commitdiff
Put the LyX window frontmost automatically on Mac on successful reverse search
authorStephan Witt <switt@lyx.org>
Thu, 13 Feb 2020 15:38:37 +0000 (16:38 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:52 +0000 (15:48 +0200)
development/MacOSX/lyxeditor

index 7431b3b99165ee529b34e609b74f56d7f4b1d661..670dea2228434cade48fbd88a3a7faf644737a1d 100755 (executable)
@@ -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."