Is it possible to run openoffice macro from external file? -
i want run openoffice macro external file. like:
vlad@leo ~ $ soffice macro:///home/vlad/q.vbs
not answer - comment instead, bump question, , answer :)
this possibly has having explicitly set permissions macros, instance:
can't execute macro command line (view topic) • openoffice.org community forum
edit: in fact seems impossible call document macros, perfect security reasons.
see also:
- custom openoffice.org basic macros , libraries - openoffice.org wiki
- openoffice.org forum :: enable openoffice macro through command line.
- openoffice.org forum :: simple command line question
- openoffice.org forum :: howto run macros document shell
as side note, standard module1
file can found in (on linux):
~/.openoffice.org/3/user/basic/standard/module1.xba ~/.libreoffice/3/user/basic/standard/module1.xba
and note .xba xml file, contains basic macro source, in:
<?xml version="1.0" encoding="utf-8"?> <!doctype script:module public "-//openoffice.org//dtd officedocument 1.0//en" "module.dtd"> <script:module xmlns:script="http://openoffice.org/2000/script" script:name="module1" script:language="starbasic">rem ***** basic ***** sub main end sub</script:module>
unfortunately, copying respective directories (below, in extensions) not work, in following command line snippet..
sudo mkdir /usr/lib/libreoffice/share/extensions/mytest sudo cp ~/.libreoffice/3/user/basic/standard/module1.xba /usr/lib/libreoffice/share/extensions/mytest/mytestmodule.xba sudo sed -i 's/module1/mytestmodule/g' /usr/lib/libreoffice/share/extensions/mytest/mytestmodule.xba
so guess way manually add/allow macros in openoffice, , possibly find respective .xba's stored, , change code there (if command line usage desired)...
maybe using python - openoffice.org wiki more open approach external scripts - requires start openoffice server...
Comments
Post a Comment