[OS X TeX] bbedit and xelatex

Jonathan Lubin jonathanlubin at mac.com
Tue Sep 17 15:21:35 EDT 2013

I use BBEdit as an external editor, and since I write only the simplest documents, one at a time, I make do with the simple AppleScript below. To use it, of course you have to configure for external editor, but also the .pdf window of the document in TeXShop has to be foremost, and you’ll be working in  BBEdit on a text document for your paper. The root TeX document will have the first line
%%!TEX TS-program = pdflatex
or whatever is appropriate to you.

the script:

tell application "BBEdit"
	save text document 1
end tell
tell application "TeXShop"
	typeset document of window 1
end tell

This is a script in the directory ~/Library/Application Support/BBEdit/Scripts , and it works like a charm.

- Jonathan Lubin


More information about the MacOSX-TeX mailing list