[OS X TeX] Can a TeXShop engine give the PDF name?
cgg.lists at gmail.com
Wed Dec 4 18:15:14 EST 2013
On Dec 4, 2013, at 10:47 AM, Duncan Murdoch <murdoch.duncan at gmail.com> wrote:
> On 04/12/2013 11:34 AM, Michael Sharpe wrote:
>> tell application "TeXShop"
>> open posix file "$cwd/foo.pdf"
>> on error
>> end try
>> set index of window "$1:foo.pdf" to 1
>> tell document "$1:foo.pdf" to refreshpdf
>> end tell
> This still seems to have the same problem, namely that if TeXShop already has processed foo.tex to produce and preview foo.pdf, then this opens a new window, also named foo.pdf.
I assume that you mean processing foo.tex produces and previews bar.pdf, correct?
Anyway, this is not what I see. For me under Mavericks, the first use of this script does the correct thing, the second doesn’t do anything, I guess because now its getting and catching the error Michael mentioned. I don’t see two open pdf windows, though.
More information about the MacOSX-TeX