[OS X TeX] Applescript in TS
Themis Matsoukas
tmatsoukas at gmail.com
Thu Jul 22 23:05:18 CEST 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?
--AppleScript
tell application "Excalibur"
activate
open POSIX file #FILEPATH#
activate
end tell
tell application "TeXShop"
close window 1
end tell
Thanks
Themis
More information about the macostex-archives
mailing list