From c7227e4c4011bbd8002790c4c0c26a32f85ad31e 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." -- 2.39.5