From ab877352e74455278da372d97672a7705ca2fd29 Mon Sep 17 00:00:00 2001 From: Stephan Witt Date: Fri, 14 Feb 2020 12:06:08 +0100 Subject: [PATCH] Use the application id of lyx to address the running LyX instance --- development/MacOSX/lyxeditor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/development/MacOSX/lyxeditor b/development/MacOSX/lyxeditor index 670dea2228..d24373c7b8 100755 --- a/development/MacOSX/lyxeditor +++ b/development/MacOSX/lyxeditor @@ -90,7 +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' + test -x /usr/bin/osascript && /usr/bin/osascript -e 'tell application id "org.lyx.lyx" to activate' else echo "Our best guess sets lyxpipe as ${LYXPIPE}" echo "But the lyxpipe could not be found."