[OS X TeX] Applescript modules

Claus Gerhardt gerhardt at math.uni-heidelberg.de
Mon Sep 25 17:51:40 CEST 2006


I have added an incomplete selection of Applescript subroutines to  
Flashmode-downloadable in a new folder Applescripts-modular that  
should help the script illiterates to write their own Applescripts. A  
template script showing the necessary simple steps is included and  
pasted below.

Notice that the subroutines have empty handlers.

Claus

-- Applescript
-- Claus Gerhardt


(* Replace the subroutine name twice below and don't forget the ()  
the second time.
This procedure can be iterated to create an Applescript consisting of  
multiple modules.

The modules require that the tex file or the corresponding pdf file  
are frontmost in TeXShop.*)


set applescriptName to "pdflatex_error_cpl" -- Replace subroutine  
name if necessary

set scriptPath to (do shell script "dirname " & "~/Library/Flashmode/ 
Applescripts-modular/ex")
set scriptPath to scriptPath & "/" & applescriptName & ".scpt"
set scriptName to POSIX file scriptPath as alias
set scriptLiB to (load script scriptName)
tell scriptLiB
	pdflatex_error_cpl()
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