Re: OT:macros or software?
- From: Philip Herlihy <thiswillbounceback@xxxxxxx>
- Date: Wed, 03 Oct 2007 13:35:23 +0100
Mr Sandman wrote:
Hi all,
need to ask a question, but not sure where to ask it, so i thought as you
lot have a lot of time spent on Windows, someone will be able to help!
Basically i want a program that will monitor a folder on my hard drive, and
when a .PDF (searchable PDF) file is stored there, search it for certain
words and depending on weather those words are found in that document, move it to a predetermined folder.
I heard i could do this with a macro....but not sure how to do it. But is
there something already out there that will do this for me? If this is not
the best place to ask this question...any suggestions as to where ask it?
Best regards all,
Steve
Easy enough if it were a text document, or even Word, as you could write a DOS script, or a VBS script if you had to load Word to read Word documents, although writing such a script can be harder to a beginner than some might think.
As the content is PDF, the puzzle is how to search through that in a script. I know Adobe Acrobat Professional (not the Reader) has a JavaScript capability which might do the trick, but you'd need to have that program available (not cheap) if it turned out that it will do what you want. I suppose you could try running Word with the "recover text from any document" component installed - you'd want to program Word itself (VBA), as the naive scripter's trick of starting a new Word process for every file in the folder will slow the process to a crawl. You might like to try asking the question in comp.text.pdf.
Anyway, it's a pretty hideous thing to have to do. You're going to search, regularly, through every file in a folder for a string, just in case a new file contains it? I bet there's a better solution...
If the string was in the name of the file it would be less work - you can set up the rather marvellous "robocopy" (in W2k3 server Resource Kit, free download) but that won't read inside a file, and certainly not a pdf!
Phil, London
.
- Follow-Ups:
- Re: OT:macros or software?
- From: Grooove
- Re: OT:macros or software?
- From: Mike Scott
- Re: OT:macros or software?
- References:
- OT:macros or software?
- From: Mr Sandman
- OT:macros or software?
- Prev by Date: Re: SATA Card - anyone rec one ?
- Next by Date: Desktop vs Tower
- Previous by thread: OT:macros or software?
- Next by thread: Re: OT:macros or software?
- Index(es):
Relevant Pages
|