#!/bin/sh

# displayline.sh (Skim)
#
# Usage: displayline.sh LINE PDFFILE [TEXSOURCEFILE]

line=$1
file="$2"
if [ $# -gt 3 ]; then
source="$3"
else
source="$2"
fi

/usr/bin/osascript -e "tell application \"Skim\"" -e "activate" -e "display TeX line "${line}" in \""${file}"\" from source \""${source}"\"" -e "end tell"

#!/bin/sh

line=$1
file="$2"
project="$2"
if [ $# -gt 3 ]; then
project="$2"
fi

/usr/bin/osascript -e "tell application \"Skim\"" -e "activate" -e "display TeX line "${line}" in \""${file}"\" from source \""${project}"\"" -e "end tell"

--- 
+++ 
@@ -1,15 +1,10 @@
 #!/bin/sh
-
-# displayline.sh (Skim)
-#
-# Usage: displayline.sh LINE PDFFILE [TEXSOURCEFILE]
 
 line=$1
 file="$2"
+project="$2"
 if [ $# -gt 3 ]; then
-source="$3"
-else
-source="$2"
+project="$2"
 fi
 
-/usr/bin/osascript -e "tell application \"Skim\"" -e "activate" -e "display TeX line "${line}" in \""${file}"\" from source \""${source}"\"" -e "end tell"
+/usr/bin/osascript -e "tell application \"Skim\"" -e "activate" -e "display TeX line "${line}" in \""${file}"\" from source \""${project}"\"" -e "end tell"
Use correct arguments to pass to applescript for displaying tex line.

git-svn-id: 765db44a9620ed55f4f8addfd3c14fe8cd57f6bb@1886 0fceea05-a30d-0410-8a8b-80ef821fb0a1
