Skim just tells the editor to display the line in the file (using the  
lyxeditor tool in the case of LyX). How it does that is their  
responsibility.

A workaround could be to use a custom script to call lyx, something  
like the following:


#!/usr/bash

/usr/bin/osascript -e "tell application \"LyX\" to activate"
/Applications/LyX.app/Contents/MacOS/lyxeditor "$1" $2


You can also do this directly in the Skim preferences (it's a bit  
hackish, but it should work). Set the command to:

/Applications/LyX.app/Contents/MacOS/lyxeditor

and the arguments to:

"%file" %line; /usr/bin/osascript -e 'tell application "LyX" to  
activate'

Christiaan

On 19 Aug 2008, at 9:03 PM, Ivan Werning wrote:

> From Skim if I have it set up to use the pdfynsc with LyX it seems to
> work, that is it moves the cursor approximately to the right spot in
> the file.
>
> (aside: although, as mentioned in a previous thread of mine here, once
> in a while I have to delete a .lyxpipe.in and/or .lyxpipe.out file in
> the LyX's Library directory, with LyX closed, to get it all working
> again...)
>
> However, the problem is that it does not raise the LyX application. So
> I have to CMD+TAB to it each time, which is annoying. In contrast,
> when I use Aquamacs and I set Skim to pdfsync with it then the reverse
> search in Skim leads me to Aquamacs.
>
> Is this behavior with LyX what is expected or not? Any fix or
> workaround to get it to raise LyX?
>
>
> -Ivan


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-users

Reply via email to