[OS X TeX] latexdb & texshop

Ingo Reich ireich at mac.com
Thu Oct 13 22:13:49 CEST 2005


Thanks to Claus, Herb and Peter for spending their time to solve my  
problem.
Everything works fine now. Ingo



Am 13.10.2005 um 18:03 schrieb Claus Gerhardt:

> The additional files created by latexdb are not the cause of the  
> trouble with saving the original, but as Ingo has already hinted  
> latexdb must change the name of original to .backup.
>
> The only remedy I can think of, except of course rewriting latexdb,  
> is the following Applescript
>
> Claus
>
>
> --Applescript
>
> tell application "TeXShop"
>         get path of document of window 1
>         set fileName to result
>     end tell
>     set scriptPath to (do shell script "dirname " & "~/Library/ 
> TeXShop/Scripts/ex")
>     set scriptPath to scriptPath & "/setnamets.scpt"
>     set scriptName to POSIX file scriptPath as alias
>     set scriptLiB to (load script scriptName)
>     tell scriptLiB
>         set {baseName, texName, pdfName, namePath, dirName,  
> dirNameunquoted, logName, logPath, rtfName} to setnamets(fileName)
>     end tell
>
> set theFile to POSIX file fileName as string
> tell application "TeXShop"
>     close document texName
> end tell
>
> set shellScript to "cd " & dirName & ";"
> set shellScript to shellScript & "~/Library/TeXShop/bin/latexdbi  "  
> & texName
> do shell script shellScript
>
> set shellScript to "cd " & dirName & ";"
> set shellScript to shellScript & "~/Library/TeXShop/bin/dvipdfc  "  
> & baseName
> do shell script shellScript
> (*
> set pdfName to quotedform of pdfName
>
> set thePDF to POSIX file pdfName as alias
> *)
> tell application "TeXShop"
>     open theFile
> end tell
>
> tell document texName of application "TeXShop"
>             activate
>             refreshpdf
>         end tell
>
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
          & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/




More information about the macostex-archives mailing list