|
NeoOffice Launch Shortcuts
From NeoWiki
Revision as of 22:18, 10 January 2007 (edit) Sardisson (Talk | contribs) (→References - CFBundleExecutable instructions) ← Previous diff |
Revision as of 02:03, 15 March 2007 (edit) (undo) Sardisson (Talk | contribs) (→References - launcher) Next diff → |
||
Line 71: | Line 71: | ||
====References==== | ====References==== | ||
This [http://trinity.neooffice.org/modules.php?name=Forums&file=viewtopic&t=3660 trinity thread] discusses changing the CFBundleExecutable. | This [http://trinity.neooffice.org/modules.php?name=Forums&file=viewtopic&t=3660 trinity thread] discusses changing the CFBundleExecutable. | ||
+ | |||
+ | ==Launcher Applications== | ||
+ | |||
+ | A launcher application is under development [[Launcher - Developer|here]]. | ||
{{botlangbarEN|[[de:Start-Kurzbefehle_f%C3%BCr_NeoOffice|Deutsch]] [[Fr:Document_par_d%C3%A9faut_%C3%A0_l%27ouverture|Français]]}} | {{botlangbarEN|[[de:Start-Kurzbefehle_f%C3%BCr_NeoOffice|Deutsch]] [[Fr:Document_par_d%C3%A9faut_%C3%A0_l%27ouverture|Français]]}} | ||
[[Category:Tips and Hints]][[Category:NeoOffice]][[Category:OpenOffice.org]] | [[Category:Tips and Hints]][[Category:NeoOffice]][[Category:OpenOffice.org]] |
Revision as of 02:03, 15 March 2007
There are several methods which allow you to launch NeoOffice into a particular application rather than into Writer.
Contents |
Launch Shortcuts
made a template file for each of the components that make up NeoOffice and OpenOffice.org. 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.
The files can be found here:
http://neo-downloads.sixthcrusade.com/neoofficeshortcuts_en.zip
http://neo-downloads.sixthcrusade.com/neoofficeshortcuts_de.zip
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.
More information:
http://trinity.neooffice.org/modules.php?name=Forums&file=viewtopic&t=445
Stub Applications
You can also download a set of stub applications for each of the different components from http://www.toonetown.com/projects/downloads/NeoOfficeApps.zip. 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 OpenOffice.org 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.
Macros
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 com.sun.star.beans.PropertyValue url="file:///Users/fabrizio/Desktop/Archivio/form database/eventi.sdw" leggo(0).Name="ReadOnly" leggo(0).Value=TRUE 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.
References
Thread on trinity discussing this macro.
CFBundleExecutable
It is also possible to define a custom executable in order to 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 NeoOffice.app/Contents/MacOS 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.
Sample shell script
#!/bin/sh /Applications/NeoOffice.app/Contents/MacOS/soffice.bin -nodefault
This script, when saved as an executable file (e.g. /Applications/NeoOffice.app/Contents/MacOS/soffice-nodefault) and set as the CFBundleExecutable will start NeoOffice without the default Writer document.
References
This trinity thread discusses changing the CFBundleExecutable.
Launcher Applications
A launcher application is under development here.