<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#336666">
    <div class="moz-cite-prefix"><font face="Verdana">You got me
        thinking about this. Here's some really basic ExtendScript code
        that will iterate over all markers and check the text of
        "message URL" Hypertext markers to see if they are valid files
        (on the local file system). This would need to be cleaned up a
        bit to make it useful, but definitely doable ..<br>
        <br>
        var doc = app.ActiveDoc;<br>
        var marker = doc.FirstMarkerInDoc;<br>
        while (marker.id) {<br>
            if (marker.MarkerTypeId.Name == "Hypertext") {<br>
                var markerText = marker.MarkerText;<br>
                if (markerText.substr(0,11) == "message URL") {<br>
                    var target = markerText.substr(12);<br>
                    // tests for local files<br>
                    var file = File(target);<br>
                    if (file.exists) {<br>
                        Console("GOOD ["+target+"]");<br>
                    } else {<br>
                        Console("BAD ["+target+"]");<br>
                    }<br>
                }<br>
            }<br>
            marker = marker.NextMarkerInDoc;<br>
        }<br>
        <br>
        It turns out that you can test for remote (web-based) URLs using
        the Socket object.<br>
        <br>
        Cheers,<br>
        <br>
        ...scott<br>
      </font>
      <pre class="moz-signature" cols="72">
</pre>
      On 4/29/14 5:55 PM, Scott Prentice wrote:<br>
    </div>
    <blockquote cite="mid:53604A1A.1040204@leximation.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix"><font face="Verdana">Hi John...<br>
          <br>
          Interesting.<br>
          <br>
          First, you'd have to define what it means for a link to be
          "valid". Are these URLs to content on a web server? If so,
          does valid mean that it doesn't return a 404 error (page not
          found)? Or do you need to know that the page actually has the
          content that you expected it to .. in which case you might
          want to be able to scan the content at the target URL for text
          that matches the link text?<br>
          <br>
          Or .. am I blowing this out of proportion, and you're just
          looking on a local file system for a matching file name?<br>
          <br>
          If the latter, ExtendScript should be able to do what you
          need, if the former, you might need a bit more processing
          power like an FDK client.<br>
          <br>
          I'll be interested to see if anyone else has done this sort of
          thing.<br>
          <br>
          If you need help developing such a script/utility .. give me a
          holler.<br>
          <br>
          Cheers,<br>
          <br>
          ...scott<br>
          <br>
        </font>
        <pre class="moz-signature" cols="72">Scott Prentice
Leximation, Inc.
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="http://www.leximation.com">www.leximation.com</a>
+1.415.485.1892


</pre>
        On 4/28/14 12:11 PM, <a moz-do-not-send="true"
          class="moz-txt-link-abbreviated"
          href="mailto:john.x.posada@us.hsbc.com">john.x.posada@us.hsbc.com</a>
        wrote:<br>
      </div>
      <blockquote
cite="mid:OF437EAD0D.78B318E1-ON86257CC8.0068BE2F-85257CC8.00696B48@smtpgate.us.hsbc"
        type="cite">
        <pre wrap="">Hi, guys...FM 11.

I have a section in my books that is just pages and pages of links to text,
sql, excel, and PDF files that are out on our Sharepoint system.

As we go forward, the links are becoming a maintenance issue. While I know
I cannot automate the creation of the links, I'd like to have something
that can validate my links.

Each link is defined as a "Go to URL" hyperlink and it is an absolute link,
not relative.

Has anyone done this kind of scripting?

Thanks

John X Posada
AML Syst & Ops Supt Data Analyst | US FCC & RC Systems Control & Analytics
| HSBC North America Holdings Inc
330 Madison Ave., NY NY
                                                                 
 _______________________________________________________________ 
                                                                 
                                                                 
                                                                 
                                                                 
                                                                 
 Phone                                                           
      Int: 212-525-5483 Ext: Personal cellphone - 732-259-2874   
 Mobile                                                          
      Company Blackberry - 224-600-0570                          
 Email                                                           
      <a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:john.x.posada@us.hsbc.com">john.x.posada@us.hsbc.com</a>                                  
                                                                 
 _______________________________________________________________ 
 Protect our environment - please only print this if you have    
 to!                                                             
                                                                 



-----------------------------------------
******************************************************************
This E-mail is confidential. It may also be legally privileged. If
you are not the addressee you may not copy, forward, disclose or
use any part of it. If you have received this message in error,
please delete it and all copies from your system and notify the
sender immediately by return E-mail.

Internet communications cannot be guaranteed to be timely, secure,
error or virus-free. The sender does not accept liability for any
errors or omissions.
******************************************************************
SAVE PAPER - THINK BEFORE YOU PRINT!
_______________________________________________


</pre>
      </blockquote>
      <br>
    </blockquote>
    <br>
  </body>
</html>