NeoOffice Launch Shortcuts

From NeoWiki

Jump to: navigation, search
This article is not up to date, or it needs structural or stylistic changes to conform with the rest of this wiki.


NeoOffice 3.0.2 and newer

Beginning in NeoOffice 3.0.2 Early Access, you can choose which NeoOffice module appears at launch by selecting the appropriate item from the Open at Launch sub-menu of the NeoOffice menu.

For instance, to make NeoOffice open a new spreadsheet by default on future launches, select Calc from the Open at Launch menu.


Unless another option is chosen, NeoOffice will continue to default to opening a new Writer document on launch.

NeoOffice 3.0-3.0.1 and NeoOffice 2.2.5-2.2.6

There are several methods which allow you to launch NeoOffice into a particular application rather than into Writer.

Beginning in NeoOffice 3.0 Patch-6 and NeoOffice 2.2.5 Patch-14, NeoOffice supports a Mac OS X user default to specify the launch behavior (which module or files to open on launch). This is the preferred way to change NeoOffice's launch behavior. The default, however, remains opening a new blank Writer document.

Modifying NeoOffice's Behavior with User Defaults

Open the /Applications/Utilities/Terminal application, copy one of the following commands into the Terminal window, press Return, and then start NeoOffice.

  • To start with NeoOffice with a Calc, Impress, Math/Formula, or Base document, use:
    • Calc:
      defaults write org.neooffice.NeoOffice DefaultLaunchOptions -calc
    • Impress:
      defaults write org.neooffice.NeoOffice DefaultLaunchOptions -impress
    • Base:
      defaults write org.neooffice.NeoOffice DefaultLaunchOptions -base
    • Formula:
      defaults write org.neooffice.NeoOffice DefaultLaunchOptions -math
  • To start without any new document, use:
    defaults write org.neooffice.NeoOffice DefaultLaunchOptions -nodefault
  • If you want to specify more than one launch option, you can also specify a list of options; for example, NeoOffice will open file1.odt and file2.ods (located on your Desktop) when it launches:
    defaults write org.neooffice.NeoOffice DefaultLaunchOptions -array ~/Desktop/file1.odt ~/Desktop/file2.ods
  • To return to the default NeoOffice settings (opening a blank Writer document), use
    defaults delete org.neooffice.NeoOffice DefaultLaunchOptions

Alternate Methods

Depending on your particular needs, the following methods of launching NeoOffice into a particular module or opening a particular document may still be useful to you.

Note that it is also possible to make AppleScript-based "stub" applications for each NeoOffice module using the new DefaultLaunchOptions syntax, but no such applications have yet been written.

Launch Shortcuts

made a template file for each of the components that make up NeoOffice and By selecting the template, you'll launch NeoOffice into that component (provided NeoOffice is default application for those filetypes; if not, just make NeoOffice the default for each of these files). You can stick them in your Dock for one-click launching of the desired component. To take up less space on your Dock, put these templates in a folder, and place the folder on the Dock. Click and hold on the folder and you can choose the component you want.

The files can be found here:

This is especially helpful for NeoOffice 1.2 and above, which open to a blank Writer document.

You can also create your own template that has all of your normal document settings and use that file in the same manner as these launch shortcuts. See Editing Default Styles and Using Templates.

More information:


NeoOffice macro and database wizard fabrizio offered the following macro to launch NeoOffice into a particular application.

You can easily change which application is loaded on launch with a macro. For example my NeoOffice 1.2 starts opening the database forms using this macro:

sub apri_documento
dim oFrame as object
dim Doc as Object
dim Url as String
oFrame = ThisComponent.getCurrentController().getFrame()
dim leggo(0) as New

url="file:///Users/fabrizio/Desktop/Archivio/form database/eventi.sdw"

Doc = oFrame.loadComponentFromUrl(Url, "", 2, leggo())

end sub

You can change the macro, and after you have everything configured, choose Customize (Configure in NeoOffice 1.2) from the Tools menu; then go to the "Events" tab and link the macro to the "Start Application" event.


Thread on trinity discussing this macro.


NOMu is a third-party menu item that will launch NeoOffice into the selected component (as well as provide access to recent documents and other functions).

Obsolete Methods for Older NeoOffice Versions

These methods are here only for historical reference for older NeoOffice versions.

Stub Applications

You can also download a set of stub applications for each of the different components from These stubs only work with the 2.0 releases of NeoOffice for PPC.

Once unzipped, you need to place the applications from the NeoOfficeApps folder inside your /Applications folder (or wherever NeoOffice is installed).

You can then use those applications as if they were stand-alone applications (put them in the Dock, drop files onto them, etc.).

They use the icon set because corresponding icons for NeoOffice do not exist.

N.B. There are some limitations to what the stub applications can do; see the discussion in this and following posts on trinity.


It is also possible to define a custom executable in order to start NeoOffice in another component or to pass command line startup flags to NeoOffice.

Simply create a small shell script, save it inside your folder, and edit the entry for CFBundleExecutable in NeoOffice's Info.plist to point to your new script. Then move NeoOffice to a new folder and then move it back to /Applications (this forces LaunchServices to update its cached copy of NeoOffice's Info.plist).

N.B. Any patch which changes Info.plist will overwrite your new choice of CFBundleExecutable, as will any new version of NeoOffice, so you will need to repeat these steps afterwards.

Sample shell script


cmd=`dirname "$0"`/soffice.bin
exec "$cmd" -nodefault "$@"

This script, when saved as an executable file (e.g. /Applications/ and set as the CFBundleExecutable will start NeoOffice without the default Writer document. This follows the format used by the existing swriter, scalc, etc., scripts within NeoOffice.


This trinity thread discusses changing the CFBundleExecutable.

Launcher Applications

A launcher application is under development here.

This article in other languages:
Personal tools