Searching for a Hyperlink

Hi,

I am trying to search in the Body of a mail for hyperlink’s using lotus script, and if so check what the entire URL is. How can one find the entire URL?, I cant use a text search as sometimes the link is called eg. “Click Me” but points to a long URL… Ive tried using using the embedded objects property but it never finds a EMBED_OBJECT or EMBED_OBJECTLINK.

Any help would be appreciated.

Thanks

Subject: Searching for a Hyperlink

You could export to DXL using the LotusScript classes, parse the DXL to find the URL hotspots and then retrieve the URL. You cannot access links and hotspots using the embedded objects, as they are not embedded objects.

If you want something simpler or don’t have expertise in DXL and XML parsing, our Midas Rich Text LSX will let you do this with code that looks like:

Call rtitem.ConnectBackend(doc.Handle, “Body”)

Set rtchunk = rtitem.DefineChunk(“URLLink 1”)

While rtchunk.Exists

’ *** Do whatever you want with the LinkURL property, which is the full URL

Print rtchunk.LinkURL

’ *** Cycle to URLLink 2, then 3 and so on

rtchunk.GetNextTarget

Wend

By the way, you can change the URL if you like, since the LinkURL property is read-write.