[OS X TeX] applescripts for TeXShop and iTeXMac?

Jan Hülsmann j.huelsmann at tu-bs.de
Fri Aug 27 21:58:46 CEST 2004


Hello,

Am 27.08.2004 um 21:13 schrieb Matthew Hills:

> Any advice on writing scripts that will run on both TeXShop and 
> iTeXMac?
>
> While I can write a script that can run from both environments, there 
> is an unfortunate tendancy for the both applications to be opened when 
> the scripts are compiled (presumably to access the relevant 
> dictionaries?).
>
> my general approach is:
>
>>   set current_app to ....  (figure out which app is launching the 
>> script)

maybe something like

if frontmost application as text is "TeXShop" then
...

will do the trick?
(or was it 'path to frontmost application'?)

HTH,
--Jan--

--------------------- 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 Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the macostex-archives mailing list