On Thu, Jun 28, 2007 at 10:44:48AM +0100 or so it is rumoured hereabouts,
CP Hennessy thought:
> On Thursday 28 June 2007 09:20:25 Conor Daly wrote:
> > On Wed, Jun 27, 2007 at 09:37:47AM +0100 or so it is rumoured hereabouts,
> > CP Hennessy thought:
> > > On Tuesday 26 June 2007 21:29:35 Conor Daly wrote:
> > > > I've recorded a little macro in Openoffice.org 2.04 but I want to
> > > > finish it with a call to festival. Is there an equivalent to the c
> > > > 'system()' function? All I want is something like:
> > > >
> > > > system("festival --tts /tmp/text")
> > >
> > > It is possible using the interface :
> > > http://api.openoffice.org/docs/common/ref/com/sun/star/system/XSystemShel> > >lExecute.html of the service :
> > > http://api.openoffice.org/docs/common/ref/com/sun/star/system/SystemShell> > >Execute.html
> > >
> > > Obviously you will have to change the default security settings for this
> > > to work.
> > I'm a total newbie here. I know none of the syntax and the last time I
> > used MS VBA was about 8 years ago or more.
> > Is it simply a matter of running a system.execute() call? Or do I have to
> > declare some instance of an object first?
>> system = createUnoService("com.sun.star.system.SystemShellExecute")
>> should work. Note that I have never used this service myself.
> A very good doc on how to write OOo macros can be found here :
However, this looks like just what I need to get started. Thanks.
Conor Daly <conor.daly at cod.homelinux.org>
-----BEGIN GEEK CODE BLOCK-----
GCS/G/S/O d+(-) s:+ a+ C++(+) UL++++ US++ P>++ L+++>++++ E--- W++ !N
PS+ PE Y+ PGP? tv(-) b+++(+) G e+++(*) h-- r+++ z++++
------END GEEK CODE BLOCK------
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!