On Wed, 27 Aug 2008 02:32:57 -0500, Juergen Schmidt <[EMAIL PROTECTED]> wrote:

2. Is there a way to open openoffice in some kind of quite mode?
openoffice -accept="socket,host=localhost,port=2002;urp;"  This opens
up the actual program. I think if I was able to run it in a background
that would speed things up.

Maybe this help, sorry haven't found the script to automate the opening of OOo as listening service. But this forum takes a good aproach as having this happening:
http://www.oooforum.org/forum/viewtopic.phtml?t=34759

http://www.oooforum.org/forum/viewtopic.phtml?t=68328&highlight=python+listening+mode
This post includes the following statement:

#Note: There are generally two ways to run a python program that integrates with OOo. The first is to start
    #openoffice so that it is listening on a port, like so:
    #    ./soffice "-accept=socket,host=localhost,port=2002;urp;"&
    # You could then launch your python program, like so:
# "/cygdrive/c/Program Files/OpenOffice.org 2.3/program/python.bat" testing2.py #This method is preferred when doing development, since it is much easier to debug problems. #When development is complete, it can be launched as a macro. This script assumes that you are launching it #as a macro from inside of OOo. If you want to connect via a socket, you will have to get the context by
    #uncommenting the lines below:

    ## get the uno component context from the PyUNO runtime
    #local_context = uno.getComponentContext()
    ## create the UnoUrlResolver
    #resolver = local_context.ServiceManager.createInstanceWithContext(
    #        "com.sun.star.bridge.UnoUrlResolver", local_context )
#ctx = resolver.resolve( "uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext" ) ##Also note that at the end of this script you will have to force the script to sleep if you want listeners to work.

--
Alexandro Colorado
CoLeader of OpenOffice.org ES
http://es.openoffice.org

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to