2 # ron@18james.com, 11 Dec 2003
4 lyxpipe=/Users/$USER/.lyx/.lyxpipe
5 if [ ! -p $lyxpipe.out ]
7 lyxprefs=`expr "$0" : '\(.*\)MacOS/lyxeditor'`Resources/lyx/preferences
8 lyxpipe=`perl -n -e 'print,exit if s/^.serverpipe\\s+\"(.+)\"/$1/;' ~/.lyx/preferences $lyxprefs`
10 [ -p $lyxpipe.in ] || exit 0
11 file=`echo "$1" | sed 's|^/private||'`
12 echo LYXCMD:macdvix:server-goto-file-row:$file $2 > $lyxpipe.in || exit
13 read < $lyxpipe.out || exit