Someone e-mailed me to ask me if I knew of a script to support using
TeXShop with Skim. That is, he wanted to use pdfsync and Skim to bring
him to a particular line in TeXShop.
I came up with this...
=====
#!/bin/sh
file="$1"
line="$2"
[ "${file:0:1}" == "/" ] || file="${PWD}/${file}"
[ "${line}" == "" ] && line=1
exec osascript \
-e "set texFile to POSIX file \"${file}\"" \
-e "tell application \"TeXShop\"" \
-e "activate" \
-e "open texFile" \
-e "tell front document" \
-e "refreshtext" \
-e "goto line ${line}" \
-e "end tell" \
-e "end tell"
=====
Then I made fun of his choice of editor. Well, not really... But sorta,
in my head.
Save the script (between the "=====" lines and not including them) as
something (in the PATH) like:
/usr/local/bin/texshop
and then chmod it 0755 (e.g., chmod 0755 /usr/local/bin/texshop). Then use:
command: texshop
arguments: "%file" %line
--Ted
--
Ted Pavlic <[EMAIL PROTECTED]>
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Skim-app-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-users