[OS X TeX] Applescript in TS

Themis Matsoukas tmatsoukas at gmail.com
Thu Jul 22 17:05:18 EDT 2010

I use the applescript below to call Excalibur from TS. IN previous versions (of TS?, of OS?) the command "close window 1" would close the source file (and along with it the pdf as well) so any spelling changes saved via Excalibur would not be overwritten by TS's open window of the source. Now, however, close window 1 closes the active window; if that happens to be the pdf, it will close it while leaving the source window open. Is there a way to specify that close should be applied to the source window?


tell application "Excalibur"
	open POSIX file #FILEPATH#
end tell

tell application "TeXShop"
	close window 1
end tell



More information about the MacOSX-TeX mailing list