First of all, thanks for your help Bennett. See below.
On Jul 22, 2008, at 1:52 PM, Bennett Helm wrote:
Actually, this is not a bug in Skim, as far as I can see.
I have been testing LyX-1.6, and so /Applications/LyX.app on my
system is a developmental build of LyX-1.6. There's a line in the
lyxeditor script that is supposed to point to possible LyX user
folders in ~/Library/Application Support/, but it currently does not
point to the new (for 1.6) LyX-1.6 folder there. Correcting that
makes the default setting in Skim work for me. Similarly, going back
to LyX-1.5 works for me as well -- with the default Skim settings.
The default didn't work for me on LyX 1.5.5 and Skim 1.1.8
Both programs are in /Applications/
Note, by the way, that Skim assumes it's dealing with a .tex file
and it passes the complete path to the .tex file to lyxeditor. So
what it actually calls (when I fill in the complete path to
lyxeditor) is something like:
/Applications/LyX.app/Contents/MacOS/lyxeditor /path/to/foo.tex 123
(Even when I have the quotes around %file, I don't see the quotes in
what it sends to lyxeditor, but I might be doing something wrong.)
That means your worries about the .lyx file and complete path are, I
believe, misplaced.
Well, all I know is that I got it to work by giving it the complete
path to lyxeditor (which is precisely /Applications/LyX.app/Contents/
MacOS/lyxeditor) and by removing the quotes in the argument field.
Without either of those changes, it does not work (at least not
consistently, more below).
Nonetheless, I can't yet explain why it fails to work for you with
the default Skim settings or why you need to remove the quotes from
%file to get it to work. Do you have LyX at /Applications/LyX.app?
Yes
What is the actual filename of the file you are testing? (Does it
have any unusual characters in it?)
~\text.lyx
Have you specified a LyX temporary directory other than the default
(/tmp)? If so, what is the complete path to it?
I left it at the default /tmp indeed
Bennett
One last thing: everything I reported above, notwithstanding, I just
tested it now with the default LyX settings in Skim and it works!
Given that previously it failed, and I am dead sure of that (and I had
restarted programs, deleted pipe files, tried everything etc.), I have
to conclude that there is something random that throws it off
sometimes, maybe the status of pipe files or something (which I do not
know much about). I think that those default settings hence seem to
work, but may not do so reliably. A true mystery....
(btw, slightly off topic now: LyX doesn't have forward search does it?)