Hi René,
I tried your suggestions. I've added the snippet, both in addition and in replacement of the previous lines regarding TeXShop in refresh_viewer.scpt, and in both cases at the second and successive uses of "Typeset & View (PDF)", TeXShop opens with no alert dialog. For me the command

defaults read com.macromates.textmate.preview latexViewer

shows that I'm using Skim, which is my current viewer.
I have the latest version of TeXShop (3.48.1) on my computer. In my case I had an extra LaTeX bundle in the Avian directory, but the behavior has persisted even after removing the bundle.

Cheers,
Angelo

René Schwaiger wrote:
Hi Jim,

On 06 Jan 2015, at 20:39 , Starx <jstarx@gmail.com> wrote:

It seems I spoke too soon.  TeXShop has now started to open again when I type set and view files.  I don't know what I could have done to cause this so I'm not sure how to have you recreate this behavior.  I have noticed that it is opening the .bib file from my project.  I wonder if maybe the bibtex interface also refreshes the viewer somehow?

by bibtex interface, you refer to the command “Create Bibliography”? Normally it should not not refresh the viewer.

I guess we can try to fix this step by step if that is okay with you. Could you please change `refresh_viewer.scpt` by adding a `display alert`:

...
   else if viewer is "TeXShop" then
       display alert "Refresh PDF in TeXShop"
       tell application "TeXShop"
...

If the refresh of the viewer is really caused by `texmate` then you should now get an alert dialog every time TeXShop opens after you used “Typeset & View (PDF)” more than once. If that is the case, then maybe the viewer is set incorrectly. Please check the selected PDF viewer by pasting the following command into “Terminal”:

   defaults read com.macromates.textmate.preview latexViewer 

The command should return the string `Skim`. Is this the case?

-Jim

Kind regards,
 René


_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate