So I guess the only way is to manually add/allow Macros in OpenOffice, and then possibly find where the respective .xba's are stored, and change their code there (if only a command line usage is desired)...
Maybe using Python - OpenOffice.org Wiki is more open approach to external scripts - but it requires that you start openoffice as a server...
Not really an answer - just a comment instead, so as to bump this question, and hopefully get an answer :)
This possibly has to do with having to explicitly set permissions for macros, for instance:
Can't execute macro from command line (View topic) • OpenOffice.org Community Forum
See also:
As a side note, the standard
Module1
file can be found in (on Linux):and note that the .xba is actually an XML file, that contains the Basic macro source, as in:
Unfortunately, just copying to the respective directories (below, in extensions) does not work, as in the following command line snippet..
So I guess the only way is to manually add/allow Macros in OpenOffice, and then possibly find where the respective .xba's are stored, and change their code there (if only a command line usage is desired)...
Maybe using Python - OpenOffice.org Wiki is more open approach to external scripts - but it requires that you start openoffice as a server...