| View previous topic :: View next topic |
| Author |
Message |
9point9 Moderator

Joined: 31 Aug 2004 Posts: 3875 Location: UK
|
Posted: Wed Sep 01, 2004 4:14 am Post subject: searching and batch processing of files |
|
|
I'm currently investigating writing a macro in OOo which will allow searching of files that match set criteria and then carrying out a process on those files.
In pseudo-code it goes a bit like this:
Search for files matching criteria with directory (inc. sub-directories)
For i = 1 to [total number of files found matching criteria]
Carry out process on file number i
Next i
I have done such a thing previously with VBA, but I think I could do better with OOo. At the moment I'm planning to use it to print files to PDF and produce HTML indexes of files in user defined directories.
If I can get this working then I might be able to convince my employer to make OOo available for users who would find it useful, say, all 5000 of them.
I'm new to using OOo macros so don't know how to search for files. I've not been able to find much in the help system so far.
Thanks in advance for anything anyone puts forward on this. _________________ Arch Linux
OOo 3.2.0
OOoSVN, change control for OOo documents:
http://sourceforge.net/projects/ooosvn/ |
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3211 Location: Troyes France
|
|
| Back to top |
|
 |
DannyB Moderator


Joined: 02 Apr 2003 Posts: 3991 Location: Lawrence, Kansas, USA
|
|
| Back to top |
|
 |
9point9 Moderator

Joined: 31 Aug 2004 Posts: 3875 Location: UK
|
Posted: Wed Sep 01, 2004 7:22 am Post subject: |
|
|
Thanks for those links. That first one is pretty much what I'm trying to do.
In this case I'd be searching by filename. For instance all *.doc's. I'm not an MS fan at all and seeing how batch processing in Word hasn't got me where I wanted to get I'm looking for an alternative. _________________ Arch Linux
OOo 3.2.0
OOoSVN, change control for OOo documents:
http://sourceforge.net/projects/ooosvn/ |
|
| Back to top |
|
 |
|