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