Re: LyX script

2007-01-15 Thread Bennett Helm
On Jan 15, 2007, at 10:33 AM, Jean-Marc Lasgouttes wrote: "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: One thing that may work is to try to put some information in the environment. If LyX sets the variable LYX_PIPE and then calls the viewer, will this new viewer inherit the environme

Re: LyX script

2007-01-15 Thread Jean-Marc Lasgouttes
> "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: >> One thing that may work is to try to put some information in the >> environment. If LyX sets the variable LYX_PIPE and then calls the >> viewer, will this new viewer inherit the environment of LyX and see >> the variable? Bennett> Not

Re: LyX script

2007-01-15 Thread Bennett Helm
On Jan 15, 2007, at 9:33 AM, Jean-Marc Lasgouttes wrote: "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Obviously OS X is able to find a running LyX (because it does single user stuff), and thus it should be possible for it to send message to this running LyX directly. I suspect we cou

Re: LyX script

2007-01-15 Thread Jean-Marc Lasgouttes
> "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: >> Obviously OS X is able to find a running LyX (because it does >> single user stuff), and thus it should be possible for it to send >> message to this running LyX directly. I suspect we could/should >> replace the pipe mechanism by some

Re: LyX script

2007-01-15 Thread Bennett Helm
On Jan 15, 2007, at 9:01 AM, Jean-Marc Lasgouttes wrote: "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Trying to find .lyxpipe.in in the preferences file is an ugly hack, as you might guess :) I propose a different strategy: add a new place holder $$pipe (or something) for viewers th

Re: LyX script

2007-01-15 Thread Jean-Marc Lasgouttes
> "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: >> Trying to find .lyxpipe.in in the preferences file is an ugly >> hack, as you might guess :) I propose a different strategy: add a >> new place holder $$pipe (or something) for viewers that would be >> the address of the pipe (or "non

Re: LyX script

2007-01-15 Thread Bennett Helm
On Jan 15, 2007, at 4:00 AM, Jean-Marc Lasgouttes wrote: "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> The object is first to find where .lyxpipe.in is located. The Bennett> possible locations we can anticipate are to be found Bennett> specified either in the preferences file (

Re: LyX script

2007-01-15 Thread Jean-Marc Lasgouttes
> "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> The object is first to find where .lyxpipe.in is located. The Bennett> possible locations we can anticipate are to be found Bennett> specified either in the preferences file (located in one of a Bennett> number of possible LyX Us

Re: LyX script

2007-01-14 Thread Bennett Helm
On Jan 13, 2007, at 1:36 AM, Angus Leeming wrote: Bennett Helm wrote: Bennett, if you define in words just what you want, I can whip up the script for you. I thought I did! But let me try to be clearer Sorry, I thought that Ronald was suggesting an alternative strategy. He was, bu

Re: LyX script

2007-01-12 Thread Angus Leeming
Bennett Helm wrote: Bennett, if you define in words just what you want, I can whip up the script for you. I thought I did! But let me try to be clearer Sorry, I thought that Ronald was suggesting an alternative strategy. The object is first to find where .lyxpipe.in is located. The p

Re: LyX script

2007-01-12 Thread Bennett Helm
On Jan 12, 2007, at 4:10 PM, Angus Leeming wrote: Ronald Florence <[EMAIL PROTECTED]> writes: I've been away from this too long to be of much help, but I think the Mac way of doing this would be to put the users current LyX home directory in ~/Library/Preferences/LyX.plist... An alternative

Re: LyX script

2007-01-12 Thread Angus Leeming
Ronald Florence <[EMAIL PROTECTED]> writes: > I've been away from this too long to be of much help, but I think the > Mac way of doing this would be to put the users current LyX home > directory in ~/Library/Preferences/LyX.plist... > An alternative that you might consider is to link ~/Library

Re: LyX script

2007-01-12 Thread Ronald Florence
Bennett, I've been away from this too long to be of much help, but I think the Mac way of doing this would be to put the users current LyX home directory in ~/Library/Preferences/LyX.plist. The lyxeditor script could then easily parse for it in the .plist -- I think there are ready made

Re: LyX script

2007-01-12 Thread Bennett Helm
On Jan 12, 2007, at 11:18 AM, Ronald Florence wrote: Bennett (& Jean-Marc), If it hasn't already been done, a modification to the lyxeditor script already included in MacOSX LyX based on this script http://www.macosxhints.com/article.php?story=20070111095701823 could work nicely with LyX a