[OS X TeX] kpsewhich Applescript

Claus Gerhardt gerhardt at math.uni-heidelberg.de
Sun Nov 26 22:53:32 CET 2006


Here is an Applescript for using kpsewhich without using the  
terminal. Notice that only those who installed there tex with the new  
MacTeX can use this script. The script uses the

/usr/local/texprograms/kpsewhich


As usual you can use the script from within TeXShop.

Claus


-- Applescript

set dialogSelection to "Enter the name of the file you are looking  
for, e.g., index.sty"
activate
set input to the text returned of (display dialog dialogSelection  
default answer "" buttons {"Cancel", "Ok"} default button "Ok")
set output to do shell script "/usr/local/texprograms/kpsewhich " &  
input

display dialog output buttons "OK" default button "OK"
------------------------- 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