Mass page edits possible? (FP 2003)

J

Jeff Bowman

Hello

I have approx. 6,500 pages in a folder that each contain a string
representing a single anchor (not an actual anchor, just a character string
URL) to an external page (http://domain.com/page.htm). I need to first
convert the string into an anchor, and during the conversion specify a
"_blank" value for the target attribute.

For some reason I'm having a tough time getting my head around the FrontPage
API, and I can't seem to figure out whether such a thing is even possible to
automate. Is it?

TIA,
Jeff
 
M

MD Websunlimited

Hi Jeff,

Yes it is possible with FP3 and the new F&R with RegEX. See the MS site for details.
 
J

Jim Cheshire

Jeff said:
Hello

I have approx. 6,500 pages in a folder that each contain a string
representing a single anchor (not an actual anchor, just a character
string URL) to an external page (http://domain.com/page.htm). I need
to first convert the string into an anchor, and during the conversion
specify a "_blank" value for the target attribute.

For some reason I'm having a tough time getting my head around the
FrontPage API, and I can't seem to figure out whether such a thing is
even possible to automate. Is it?

Jeff,

You can use regular expressions to do that. In the simplest example, you
can do something like this:

(?i:http://domain.com/page.htm)

And replace it with the anchor tag.

If you want more information on using regular expression searches in
FrontPage, I recommend buying my book. I cover it along with a
comprehensive case study.

--
Jim Cheshire
JIMCO
http://www.jimcoaddins.com
Free add-ins for FrontPage

Author of Special Edition
Using Microsoft Office FrontPage 2003
 
J

Jeff Bowman

Hi Jim, thanks for your reply.

Pardon me, I didn't specify in my original post that each character string
URL is unique across all pages in the collection.

I decided to do this with Visual FoxPro--it's a language I'm familiar with,
and it was fairly easy to parse each page's text and pick out the strings
that began with 'http'.

Thanks for chiming in!

Jeff
 
J

Jim Cheshire \(JIMCO\)

Jeff said:
Hi Jim, thanks for your reply.

Pardon me, I didn't specify in my original post that each character
string URL is unique across all pages in the collection.

I decided to do this with Visual FoxPro--it's a language I'm familiar
with, and it was fairly easy to parse each page's text and pick out
the strings that began with 'http'.

Thanks for chiming in!

Jeff

Jeff,

That's precisely why regular expressions are a perfect solution. Regular
expressions can do what you are asking quite nicely. In fact, the regular
expressions "language" was created for exactly this purpose.

--
Jim Cheshire
JIMCO
http://www.jimcoaddins.com
Free add-ins for FrontPage

Author of Special Edition
Using Microsoft Office FrontPage 2003
 
J

Jeff Bowman

Hm, this sounds interesting...

To your knowledge, is the RegEx syntax for FrontPage similar to that for
..NET?
 
K

Kevin Spencer

Regular Expression Syntax is the same as the international standard, which
is the same as .Net.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
J

Jens Peter Karlsen[FP MVP]

Frontpage doesn't have a regex syntax.
Javascript on the other hand does support regex and the syntax there is
the same as in .NET.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
-----Original Message-----
From: Jeff Bowman [mailto:[email protected]]
Posted At: 27. november 2004 21:25
Posted To: microsoft.public.frontpage.programming
Conversation: Mass page edits possible? (FP 2003)
Subject: Re: Mass page edits possible? (FP 2003)


Hm, this sounds interesting...

To your knowledge, is the RegEx syntax for FrontPage similar
to that for .NET?



Jim Cheshire (JIMCO) said:
Jeff,

That's precisely why regular expressions are a perfect solution.
Regular expressions can do what you are asking quite nicely. In fact,
the regular expressions "language" was created for exactly this purpose.

--
Jim Cheshire
JIMCO
http://www.jimcoaddins.com
Free add-ins for FrontPage

Author of Special Edition
Using Microsoft Office FrontPage 2003
 
J

Jeff Bowman

It's getting better all the time... :)


Kevin Spencer said:
Regular Expression Syntax is the same as the international standard, which
is the same as .Net.

--
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Neither a follower
nor a lender be.
 
J

Jeff Bowman

Re: Mass page edits possible? (FP 2003)I've been interested in learning the
syntax for some time now.


Frontpage doesn't have a regex syntax.
Javascript on the other hand does support regex and the syntax there is the
same as in .NET.
Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
-----Original Message-----
From: Jeff Bowman [mailto:[email protected]]
Posted At: 27. november 2004 21:25
Posted To: microsoft.public.frontpage.programming
Conversation: Mass page edits possible? (FP 2003)
Subject: Re: Mass page edits possible? (FP 2003)


Hm, this sounds interesting...

To your knowledge, is the RegEx syntax for FrontPage similar
to that for .NET?



Jim Cheshire (JIMCO) said:
Jeff,

That's precisely why regular expressions are a perfect solution.
Regular expressions can do what you are asking quite nicely. In fact,
the regular expressions "language" was created for exactly this purpose.

--
Jim Cheshire
JIMCO
http://www.jimcoaddins.com
Free add-ins for FrontPage

Author of Special Edition
Using Microsoft Office FrontPage 2003
 
K

Kevin Spencer

Hi Jens,

He's referring to the Regex Search capabilities of FrontPage 2003.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Neither a follower
nor a lender be.

Jens Peter Karlsen said:
Frontpage doesn't have a regex syntax.
Javascript on the other hand does support regex and the syntax there is
the same as in .NET.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
-----Original Message-----
From: Jeff Bowman [mailto:[email protected]]
Posted At: 27. november 2004 21:25
Posted To: microsoft.public.frontpage.programming
Conversation: Mass page edits possible? (FP 2003)
Subject: Re: Mass page edits possible? (FP 2003)


Hm, this sounds interesting...

To your knowledge, is the RegEx syntax for FrontPage similar
to that for .NET?



Jim Cheshire (JIMCO) said:
Jeff Bowman wrote:
Hi Jim, thanks for your reply.

Pardon me, I didn't specify in my original post that each character
string URL is unique across all pages in the collection.

I decided to do this with Visual FoxPro--it's a language I'm
familiar with, and it was fairly easy to parse each page's text and
pick out the strings that began with 'http'.

Thanks for chiming in!

Jeff


Jeff,

That's precisely why regular expressions are a perfect solution.
Regular expressions can do what you are asking quite nicely. In fact,
the regular expressions "language" was created for exactly this purpose.

--
Jim Cheshire
JIMCO
http://www.jimcoaddins.com
Free add-ins for FrontPage

Author of Special Edition
Using Microsoft Office FrontPage 2003
 
Top