Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    The Netherlands

    OOo with arguments

    Is there a decent way to open with Arguments?
    For example can I do something like this:
    writer --template MyTemplate
    that the writer thats with MyTemplate?

    I ask this since I need to link Thunderbird to a PIM (Personal information manager(Self Coded)) and link that to open Office.
    So people can click a button in Thunderbird that opens the PIM were they can chose a Document type and that they can write the email in OOo. When they close OOo the PIM saves it in a temp dir and Copys it to the Email in Thunderbird. (Like the Windows program ACT!).
    So I hope someone has some Documents about OOo for Arguments.

    Well, thanks already.
    - Robin
    New Users, please read this..
    Google first, then ask..

  2. #2
    'openoffice -h' shows me :

    Usage: soffice [options] [documents...]
    -minimized    keep startup bitmap minimized.
    -invisible    no startup screen, no default document and no UI.
    -norestore    suppress restart/restore after fatal errors.
    -quickstart   starts the quickstart service (only available on windows platform)
    -nologo       don't show startup screen.
    -nolockcheck  don't check for remote instances using the installation
    -nodefault    don't start with an empty document
    -headless     like invisible but no userinteraction at all.
    -help/-h/-?   show this message and exit.
    -writer       create new text document.
    -calc         create new spreadsheet document.
    -draw         create new drawing.
    -impress      create new presentation.
    -base         create new database.
    -math         create new formula.
    -global       create new global document.
    -web          create new HTML document.
    -o            open documents regardless whether they are templates or not.
    -n            always open documents as new files (use as template).
    -display <display>
          Specify X-Display to use in Unix/X11 versions.
    -p <documents...>
          print the specified documents on the default printer.
    -pt <printer> <documents...>
          print the specified documents on the specified printer.
    -view <documents...>
          open the specified documents in viewer-(readonly-)mode.
    -show <presentation>
          open the specified presentation and start it immediately
          Specify an UNO connect-string to create an UNO acceptor through which
          other programs can connect to access the API
          Close an acceptor that was created with -accept=<accept-string>
          Use -unnaccept=all to close all open acceptors
    Remaining arguments will be treated as filenames or URLs of documents to open.
    I would try the -o switch

  3. #3
    Linux Engineer RobinVossen's Avatar
    Join Date
    Aug 2007
    The Netherlands
    Thanks. though -o doesnt do what I want.. :/
    Stupid I didnt try -h I did try man..
    Anywho I dont think OOo supports this automaticly.
    I have to write something for OOo myself.
    I think Im going to use the nologo thing and open File.
    That file is then a TempBackup from a Specific Template.
    And Im going to make OOo save every 5 seconds. Though that will Lag as hell I guess its the only way.
    Unless someone got a better idea?
    New Users, please read this..
    Google first, then ask..

  4. $spacer_open

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts