Searching for URL 'target in .doc/.odt files

Talk about anything at all....
Post Reply
Allen Edwards
Posts: 2
Joined: Fri Jun 12, 2015 6:05 pm

Searching for URL 'target in .doc/.odt files

Post by Allen Edwards »

Is there any way, using File Explorer (or any third-party software) to search multiple SWRiter documents for the 'target' text of an embedded URL?

I have several thousand .doc files with Author URLs, where the Author name is in the URL 'text' and that author's web or email address in the 'target' text. I am trying to group these files by web address location. For instance, with 'www.AuthorGroup.com/authorname', I'd like to move all files with an author in 'AuthorGroup' to a directory called, duh, 'AuthorGroup'.

Can this be done without going through several thousand files one at a time in OO?

I am NOT a PowerShell user, so if that is the suggestion, could someone supply a PowerShell script with their answer?

Thanks to anyone who can help.
Apache Open Office 4.1.1
Windows 8.1
User avatar
probe1
Volunteer
Posts: 277
Joined: Mon Oct 08, 2007 1:34 am
Location: Chonburi Thailand

Re: Searching for URL 'target in .doc/.odt files

Post by probe1 »

Welcome to the community forum.
Allen Edwards wrote:search multiple SWRiter documents [...]
I have several thousand .doc files
[...]
Can this be done without going through several thousand files one at a time in OO?
So, what is it? StarWriter or Word documents?

Any extraction needed to open every file to get the data.

This is not a job for OpenOffice.
I recommend a script language like Python to handle the task.

And no: nobody here will write you a PowerShell (or anything other) script *for free*. We are here to help someone with questions/problems regarding OpenOffice software usage.
Get a freelancer from some job site to do the work for you.
Cheers
Winfried

DateTime2 extension: insert date, time or timestamp, formatted to your needs
Allen Edwards
Posts: 2
Joined: Fri Jun 12, 2015 6:05 pm

Re: Searching for URL 'target in .doc/.odt files

Post by Allen Edwards »

StarWriter, but ...

You are correct. This was the wrong place to ask that question.
Apache Open Office 4.1.1
Windows 8.1
User avatar
RoryOF
Moderator
Posts: 34618
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: Searching for URL 'target in .doc/.odt files

Post by RoryOF »

The macro at this location
http://www.experts-exchange.com/Softwar ... 74214.html
may need conversion to work on Writer rather than Calc, but it should get you started.
Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
Post Reply