LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] OpenOffice.org Basic macro query

[ILUG] OpenOffice.org Basic macro query

Conor Daly conor.daly_ilug at cod.homelinux.org
Thu Jun 28 13:53:30 IST 2007


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?
> 
> Yes.
> 
> system = createUnoService("com.sun.star.system.SystemShellExecute")
> 
> should work. Note that I have never used this service myself.

Didn't work.
 
> A very good doc on how to write OOo macros can be found here : 
> http://documentation.openoffice.org/HOW_TO/various_topics/AndrewMacro.odt

However, this looks like just what I need to get started.  Thanks.

Conor

-- 
Conor Daly <conor.daly at cod.homelinux.org>
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
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------
http://www.geekcode.com/ http://www.ebb.org/ungeek/



More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell