[OS X TeX] kpsewhich Applescript

Claus Gerhardt gerhardt at math.uni-heidelberg.de
Sun Nov 26 16:53:32 EST 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


As usual you can use the script from within TeXShop.


-- Applescript

set dialogSelection to "Enter the name of the file you are looking  
for, e.g., index.sty"
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 " &  

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 MacOSX-TeX mailing list