Open LibreOffice apps Individually on MacOS: Difference between revisions

From wiki
Jump to navigation Jump to search
Line 24: Line 24:
* Locate the soffice executable.
* Locate the soffice executable.
Now open an terminal and type at the prompt <pre>open -a </pre>, observe the space after the a.
Now open an terminal and type at the prompt <pre>open -a </pre>, observe the space after the a.
Now drag the soffice icon from the finder window to the terminal window. You should get the path to the soffice executable.
Now drag the soffice icon from the finder window to the terminal window. You should get the path to the soffice executable.<br>
After that type <pre>--new --args --writer</pre>.
After that type <pre>--new --args --writer</pre>.<br>
You should have something like this
You should have something like this
<pre>open -a /Applications/LibreOffice.app/Contents/MacOS/soffice --new --args --writer</pre>  
<pre>open -a /Applications/LibreOffice.app/Contents/MacOS/soffice --new --args --writer</pre>  

Revision as of 10:41, 4 April 2022


Return LibreOffice Knowledge Base Next LibreOffice Knowledge Base


04/04/2022 under construction

Synopsis

LibreOffice on MacOs is a monolithic application, it is just one executable. There are no individual applications like on Linux or Windows, i.e. writer or scalc. It is however possible to start LibreOffice with blank writer or calc document. The way to do that is with the use of the terminal application and the open command.

Implementation

This implementation is based on using the zsh in terminal.

Bare Bones

Locate the LibreOffice application in finder.

  • Right Click and select |Show Package Content|
  • Then open |Content| and |MacOs|
  • Locate the soffice executable.

Now open an terminal and type at the prompt

open -a 

, observe the space after the a.

Now drag the soffice icon from the finder window to the terminal window. You should get the path to the soffice executable.

After that type

--new --args --writer

.

You should have something like this

open -a /Applications/LibreOffice.app/Contents/MacOS/soffice --new --args --writer

Now press enter and writer should open with a blank document.

Automate

The process can be automated using a shell script. open terminal. type vim swriter Then type

#!/bin/zsh
open -a /Applications/LibreOffice.app/Contents/MacOS/soffice --new --args --writer





Return LibreOffice Knowledge Base Next LibreOffice Knowledge Base