On 4/3/07, Martin Bialasinski <klingeling@gmail.com> wrote:
open -a Terminal
osascript <<-APPLESCRIPT
        tell application "Terminal"
                do script "cd \"$DIR\"; latexmk -pvc -pdf -quiet \"$FILE\" "
        end tell
APPLESCRIPT

That seems unnecessarily roundabout. You could avoid Terminal altogether by doing:

bash <<BASH &>/dev/null &
    cd "$DIR"
    latexmk -pvc -pdf -quiet "$FILE"
BASH

If you try Latex Watch, you should find it noticeably faster than latexmk, which
might be a clue that it's not just doing the same thing. :-)

Robin