Finding broken link in url

Hi, 
i would like to generate a report to identify broken links in a page or list pages under a website in CQ5 server. how can we generate this?
pleas help me.
Raja R

http://dev.day.com/docs/en/cq/current/administering/external_link_checker.html

Similar Messages

  • How to find broken links or cross-references in a PDF file?

    Hi,
    Recently I have been trying to figure out if there is a way to find out any broken link(s) in a PDF file. I'm aware that in FrameMaker we can search for Unresolved Cross-references and fix them, but is there such feature in Acrobat?
    Any suggestions on this would be highly appreciated.
    Thanks.

    There's nothing in Acrobat itself, but there are 3rd-party program plug-ins that do the job.  I use 'Autobookmark' (http://www.evermap.com/autobookmark.asp) which does a very good job of finding and marking broken links and allows keyboard-entry editing without having to re-browse the link if you already know the correct path.  It also facilitates a lot of other useful functions that Acrobat makes rather tedious (like changing the zoom setting on all links or bookmarks).

  • Looking for a script that will find broken links

    I create long documents in InDesign, and I often have 50-75 Indesign documents in my InDesign book. Because what I do is production publishing, at any one time I'll have a half dozen similar books under construction. All the books contain the same chapters (as far as file name an basic content). I need a script that I can run on the final PDF for each project to make sure that all of my hyperlinks/cross references are intact. This is to ensure that I didn't accidentally link to a chapter from a different project. In other words, I need to make sure that my final PDF contains both the source and the destination.
    Does anyone know where I can find a script like this?
    Thanks,
    Kelly Vaughn

    A script can't do that. Maybe a plugin.

  • Broken Links not fixed after being changed-HELP PLEASE!

    I am trying to fix a website I created for a friend. I created it in Dreamweaver CS6 on a Mac. Everything was working on the website, the pitures were showing up and now 2 of the pages arent working. On both pages the spry bar is not working and some of the pictures will not show up. I have went to find broken links and redirected it to the correct file but it is not changing anything. I am not sure how to fix this problem, if anyone has any advice that would be great!! The website is www.serenityatthebeach.com.

    That line read correctly when I looked at it on the broken page colorcutstyle. I copied the code from the page if that would help. I hope this helps.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Stlye Services</title>
    <!-- TemplateEndEditable -->
    <!-- TemplateBeginEditable name="head" -->
    <!-- TemplateEndEditable -->
    <style type="text/css">
    <!--
    @import url("webfonts/Jenna_Sue/stylesheet.css");
    body {
              font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
              background-color: #A9AB36;
              margin: 0;
              padding: 0;
              color: #000;
              background-image: url(background.jpg);
    /* ~~ Element/tag selectors ~~ */
    ul, ol, dl { /* Due to variations between browsers, it's best practices to zero padding and margin on lists. For consistency, you can either specify the amounts you want here, or on the list items (LI, DT, DD) they contain. Remember that what you do here will cascade to the .nav list unless you write a more specific selector. */
              padding: 0;
              margin: 0;
    h1, h2, h3, h4, h5, h6, p {
              margin-top: 0;           /* removing the top margin gets around an issue where margins can escape from their containing div. The remaining bottom margin will hold it away from any elements that follow. */
              padding-right: 15px;
              padding-left: 15px; /* adding the padding to the sides of the elements within the divs, instead of the divs themselves, gets rid of any box model math. A nested div with side padding can also be used as an alternate method. */
              font-family: "Jenna Sue";
              font-size: 50pt;
              text-align: center;
    a img { /* this selector removes the default blue border displayed in some browsers around an image when it is surrounded by a link */
              border: none;
    /* ~~ Styling for your site's links must remain in this order - including the group of selectors that create the hover effect. ~~ */
    a:link {
              color: #A9AB36;
              text-decoration: underline; /* unless you style your links to look extremely unique, it's best to provide underlines for quick visual identification */
    a:visited {
              color: #6E6C64;
              text-decoration: underline;
    a:hover, a:active, a:focus { /* this group of selectors will give a keyboard navigator the same hover experience as the person using a mouse. */
              text-decoration: underline;
    /* ~~ this fixed width container surrounds the other divs ~~ */
    .container {
              width: 960px;
              background-color: #E5E3E4;
              margin: 0 auto; /* the auto value on the sides, coupled with the width, centers the layout */
    /* ~~ the header is not given a width. It will extend the full width of your layout. It contains an image placeholder that should be replaced with your own linked logo ~~ */
    .header {
              background-color: #ADB96E;
    /* ~~ This is the layout information. ~~
    1) Padding is only placed on the top and/or bottom of the div. The elements within this div have padding on their sides. This saves you from any "box model math". Keep in mind, if you add any side padding or border to the div itself, it will be added to the width you define to create the *total* width. You may also choose to remove the padding on the element in the div and place a second div within it with no width and the padding necessary for your design.
    .content {
              padding: 10px 0;
    /* ~~ The footer ~~ */
    .footer {
              padding: 10px 0;
              background-color: #A9AB36;
    /* ~~ miscellaneous float/clear classes ~~ */
    .fltrt {  /* this class can be used to float an element right in your page. The floated element must precede the element it should be next to on the page. */
              float: right;
              margin-left: 8px;
    .fltlft { /* this class can be used to float an element left in your page. The floated element must precede the element it should be next to on the page. */
              float: left;
              margin-right: 8px;
    .clearfloat { /* this class can be placed on a <br /> or empty div as the final element following the last floated div (within the #container) if the #footer is removed or taken out of the #container */
              clear:both;
              height:0;
              font-size: 1px;
              line-height: 0px;
    .container .content p {
              font-size: 30pt;
    .Headers {
              color: #A8A92B;
    -->
    </style>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    </head>
    <body>
    <div class="container">
      <div class="header"><!-- end .header -->
      <div align="right"><a href="http://www.aveda.com/index.tmpl"><img src="Header1.jpg" alt="Header" name="logo" width="961" height="423" id="logo" /></a></div>
      </div>
      <div class="content">
        <ul id="MenuBar1" class="MenuBarHorizontal">
          <li><a href="index.html">Home</a>      </li>
          <li><a href="colorcutstyle.html">Hair Services </a></li>
          <li><a href="../spapage.html">Spa Services </a>      </li>
          <li><a href="nailpage.html">Nail Services </a></li>
          <li><a href="makeup.html">Make-Up </a></li>
          <li><a href="../aboutus.html">About Us </a></li>
        </ul>
        <h1 class="Headers">Hair Services</h1>
        <p><img src="color.gif" width="792" height="612" alt="hairservice" /></p>
        <h1 class="Headers"><img src="IMG_2397.JPG" alt="salon picture" width="933" height="282" /></h1>
        <p>&quot;+&quot;indicates variations in the price determined by the work involved and the level of talent </p>
        <p align="left">24 hours cancellation notice is required </p>
      </div>
      <div class="footer">
        <p><a href="https://www.facebook.com/SerenityAtTheBeachSalonSpa?fref=ts"><img src="facebook-logo.png" alt="facebook" width="244" height="195" /></a><a href="https://plus.google.com/110271807602578049704/about?gl-us&hl=en"><img src="googleplus.png" alt="google plus" width="194" height="194" /></a><!-- end .footer --></p>
      </div>
      <!-- end .container --></div>
    <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>
    </body>
    </html>

  • Detect Broken Links

    Hi all,
    Does anyone know if there is a tool in SAP to scan through all SAP web pages and detect broken URL links?
    Thanks!

    Hi,
    There is no tool to scan and find broken links. try third party tools like http trace,xmenu link scan etc.
    Thanking You,
    Gopal

  • A LOT of iTunes broken links/tracks after Music folder move...

    So yeah, I'm getting a TON of broken links / dead track links in iTunes after having to do two things to my iTunes install recently and I'm at wits end trying to fix it.
    I keep my iTunes Music Folder on an external and share the iTunes library between my work Macbook Pro and my home Macbook. Every Friday I drag my iTunes folder and all contents from my MBP onto an external and replace the iTunes folder on the 'weekend' MB, then do the same back on Monday. I keep my iTunes music 'View' as 'Date Added' so that I can always be listening to whatever is newest. It's how I roll.
    Well, this week I had some data problems during the transfer and had to use a previous week's iTunes Music Folder, which was fine as I hadn't added much this week.
    I also got a new external because the old one was getting a little shady, so after doing the iTunes Music Folder replacement I moved my music all over to a new external drive, told iTunes where it all was at. iTunes did it's thing, 'organized' my stuff and all seemed good - until I got back deeper into the catalogue of music and started getting a LOT of broken tracks. The songs are still there, in the correct folders and all, but for some reason iTunes isn't finding them.
    When I say a LOT, I mean so far it's hundreds of my 13,000 songs.
    Now I COULD use the 'Super Remove Dead Tracks' script from Doug's to find all the broken files then re-add the whole library, but it will add all the old songs out of order because they will get a new 'Added' date.
    I could also manually move thru my whole library holding down the arrow key for 'Next' to find all the broken links then go thru, select them, and use the 'iTunes Track CPR' script from Doug's to re-add them to the library with ratings intact, but still they will be out of order time-wise.
    I cannot find a script that will parse my library, find broken links, and re-associate them with their tracks, nor can I figure out why this happened and any other way to fix it. Repairing permissions hasn't helped. Any other ideas?

    Just to follow up with a more comprehensive example of looping through a Library to detect & repair "missing" file-tracks:
    <pre>
    property kErrAENoSuchObject:(-1728)
    on run
    tell (application "iTunes")
    set theLibraryPlaylist to (first library playlist)
    tell theLibraryPlaylist
    set theNumCandidateFileTracks to (count (every file track))
    repeat with i from 1 to theNumCandidateFileTracks by 1
    -- Get a reference to this file-track
    set thisFileTrackRef to (file track i)
    -- Get this file-track's info (useful for debugging, etc.)
    set thisArtist to (artist of thisFileTrackRef)
    set thisAlbum to (album of thisFileTrackRef)
    set thisName to (name of thisFileTrackRef)
    set thisFileTrackInfo to (thisArtist & " > " & thisAlbum & " > " & thisName)
    -- Display a diagnostic message every 500th file-track
    if ((i mod 500) = 0) then
    tell me
    display dialog ("Checking file-track #" & i & ": " & ¬
    return & return & thisFileTrackInfo) ¬
    buttons {"Cancel", "•"} giving up after 2.5
    end tell -- me
    end if
    -- Retrieve this file-track's target file (an AS 'alias' object), if any
    -- {!!! NOTE: Due to a bug in iTunes 7.x+ (esp. when downloading), AS might
    -- be unable to access the 'location' field of some file-tracks !!!}
    try
    set thisFileTrackTargetFile to (location of thisFileTrackRef)
    on error errMsg2 number errNum2
    -- Check whether it's that bizarre error: (-1728) "Can't get location of …"
    if (errNum2 = (kErrAENoSuchObject of me)) then
    -- Set up to just skip this track (assume it's being downloaded)
    set thisFileTrackTargetFile to (anything) -- (Other than 'missing value')
    else (* Re-signal all other errors *)
    error errMsg2 number errNum2
    end if
    end try
    -- Check whether this file-track is "missing" its target file
    if (thisFileTrackTargetFile = (missing value))
    -- Inform the user
    tell me
    display dialog ("Repairing this missing file-track: " & ¬
    return & return & thisFileTrackInfo) ¬
    buttons {"Cancel", "•"} giving up after 2.5
    end tell -- me
    -- Set up this target file's new pathname (e.g., via explicit user input, or
    -- better yet automatically reconstructed from this file-track's tags such
    -- as Artist, Album, Name, Kind, etc.)
    -- ... Translate this file-track's kind into a filename-extension
    set thisKind to (kind of thisFileTrackRef)
    set thisNameExt to "m4a" -- ... Default
    if ({thisKind} is in {("Protected AAC audio file")}) then -- Older DRM'd file
    set thisNameExt to "m4p"
    else if ({thisKind} is in {("MPEG audio file")}) then -- MP3
    set thisNameExt to "mp3"
    else if (thisKind contains "movie file") then -- E.g., interactive booklet
    set thisNameExt to "mov"
    end -- (thisKind = "MPEG audio file") ... else if ... else ...
    -- ... Auto-build this target file's new pathname
    set thisTargetFileNewPathname to ("New Disk:New Path:" & ¬
    thisArtist & ":" & thisAlbum & ":" & thisName & "." & thisNameExt)
    -- Assign this new target file (as an AS 'alias' object) to this file-track
    -- (This is the crucial step that was impossible in older versions of iTunes!)
    set (location of thisFileTrackRef) to (alias thisTargetFileNewPathname)
    end if -- (thisFileTrackTargetFile = (missing value))
    end repeat -- with i from 1 to theNumCandidateFileTracks by 1
    end tell -- theLibraryPlaylist
    end tell -- (application "iTunes")
    end run
    </pre>
    Regards,
    --P

  • How to find broken url from custom 404 page?

    I have created a custom 404 jsp page and updated the web deployment descriptor with the code:
         <error-page>
            <error-code>404</error-code>
            <location>/jsp/custom-404.jsp</location>
         </error-page>Whenever I enter an invalid url or click on broken link (target does not exist), a 404 HTTP response arises and the custom-404.jsp is rendered. So far so good.
    Within the custom-404.jsp, I would like to know the original url (invalid link or broken link) so that I can send the administrator an email with the url details.But, I could not find any API to find this url?
    Can someone help here please?
    Thanks

    My bet is that it is available as referrer inside the error page in case of a redirect, or as Request URI in case of a forward.
    String referrer = httpServletRequest.getHeader("referer"); // Yes, with the legendary misspelling in it.
    // or
    String requestURI = httpServletRequest.getRequestURI();

  • Broken links to database stored gif's

    I installed 9i AS 1.0.2 for NT and immediately after that the hlw-tutorial files. Now some (not all) links are broken, e.g. in the hlw navigation bar the link to the "home" (http://servername/pls/portal30/docs/249.gif). The file 249.gif is stored in wwdoc_document$ with a pathid of 209. As I didn't find an appropriate table in user_tab_columns resolving the pathid: does anyone know where this pathid is resolved or - even better - what the cause of that error is?
    Thanks in advance
    Klaus

    I have the same problem. Without any known reasons the links to many items are broken. These are not only gif-images but all items which are created or linked in a content area. When i click on such a broken link-item the following error-message appears:
    Invalid name
    DAD name: portal30
    PROCEDURE :
    URL : http://mypc:80/pls/portal30/docs/470.gif
    PARAMETERS :
    ===========
    ENVIRONMENT:
    ============
    PLSQL_GATEWAY=WebDb
    GATEWAY_IVERSION=2
    SERVER_SOFTWARE=Apache/1.3.12 (Win32) ApacheJServ/1.1 mod_ssl/2.6.4 OpenSSL/0.9.5a mod_perl/1.22
    GATEWAY_INTERFACE=CGI/1.1
    SERVER_PORT=80
    Who knows the reason for this problem ? Can anybody help ?

  • Broken Help Topic URL

    Hello.
    I just downloaded the aqualogic integrator and am using it's workshop.
    I tried finding tutorials through the help menu and found the following link on a page in the help contents:
    Help Page URL:
    [url http://127.0.0.1:7033/help/index.jsp?topic=/com.bea.wli.ide.jpd.doc/html/maintopic.html]http://127.0.0.1:7033/help/index.jsp?topic=/com.bea.wli.ide.jpd.doc/html/maintopic.html
    Broken Link:
    [url http://edocs.bea.com/wli/docs92/bpguide/bpguideCreate.html]http://edocs.bea.com/wli/docs92/bpguide/bpguideCreate.html
    This link seems to be broken at the time of writing this. I was able to find what appeard to be the Japanese version of this page.
    Can someone point me to the correct URL for this or a different Business Process guide/tutorial?
    Thank you
    Kris

    That will work. Thanks.
    I am looking for any information oh how to model process using the WLI portion and how to integrate that with the ESB portion of the Aqualogic Integrator 921.
    If you can recommend any good resources I would greatly appreciate it.
    Kris

  • Broken link to Refunded Returns General Conditions

    On log-in I've been shown some advert with image and advertising refunded returns. There was a link to general conditions, so I wanted to read it, but when clicked on it, the page showed the error: Sorry, that page doesn't exist. We can’t find a page with the url you entered. The URL for that page: https://www.paypal.com/pl/webapps/mpp/refunded-returns/general-conditions Can you correct that please? What is the correct address then? Thank you.

    Jan,
    Thanks for reporting this broken link. The "Oracle Web Services Manager - Feature Overview" link has been updated and is now available from: http://www.oracle.com/technology/products/webservices_manager/index.html
    Regards,
    ...Lawrence/OTN

  • Orphaned files - broken links - URGENT

    Hi everyone
    I am currently going through and deleting 675 orphaned files
    and files that are old although if they create a broken link after
    deletion this will not show when I re run the link checker even
    though I know they are. Does anyone know why this is? I can't keep
    deleting things if it is going to create a broken link within the
    site. Also, is there any way of finding out where an individual
    document is located on the site if at all?
    Second issue is that orphaned files that I have deleted in
    both the local site and remote site are still coming up when I do
    the link check. Why is this so and how can I get them removed from
    the orphaned files list?
    Please help
    Merry

    many of the people offering answers use the NNTP newsgroup
    reader version.
    the webforum has been flaky lately i think.
    Here's my reply from a while ago-
    after deleting files- recreate the site cache.
    It's under the site menu on older versions, under
    site-->advanced on newer.
    dw's link checker checks html links, and links in "behaviors"
    that it
    understands.
    it will not check links in most javascript.
    What's an example of a broken link that dw didn't warn of
    when deleting the
    reported orphan? �url address to the page??
    and here are links to a google archive of the newsgroup.
    http://groups.google.com/group/macromedia.dreamweaver/search?group=macromedi
    a.dreamweaver&q=Orphaned+files+-+broken+links+-+URGENT&qt_g=1&searchnow=Sear
    ch+this+group
    http://groups.google.com/group/macromedia.dreamweaver/browse_frm/thread/3b1c
    2e1950cbb577/9ed3b0a716f876c5?lnk=gst&q=Orphaned+files+-+broken+links+-+URGE
    NT&rnum=1#9ed3b0a716f876c5
    > Hi Murray
    >
    > It's just that it says there are 9 posts regarding my
    original question
    > although when I open it up they don't show.
    >
    > Merry :)

  • The broken link error

    Hi,
    Please help me with this broken link error in Office Excel 2010. Thank you.
    The problem is: a broken link cannot be removed from the file. The link was used in data validation, which refers to a list of values. After the path was corrected, it still shows there’s a broken link. Here are the details:
    I have 4 files named “000TVA_Test – 3”, “000TVA_Test – 4”, “000TVA_Test – 5”, and “000TVA_Test – 6”. The posterior files were developed based on the previous files.
    In Test-3, sheet “Template “, cell “L4”, “O4”, “R4”… were built as dropdown list using data validation. The list source is in the “Library” worksheet. There’s no problem so far.
    Test-4 was firstly copied from Test-3. In this file I renamed the worksheet from “Library” to “Setting” and the link was broken from here. I can also fix the broken link in this file. (While I didn’t realize there was a broken link.)
    In Test-5 I fixed the path, but every time when opening the file, the broken link still shows.
    In Test-6 I’ve removed the data validations. The broken link is still there.
    I tried to find solutions online. I tried common methods, cannot find anything in the files is still using links. I also tried the “findlink.xla” add-in, but it only worked for Test-4, and couldn’t find the link in other files.
    Please help. Thank you!
    I uploaded files here: https://onedrive.live.com/redir?resid=1A97736E0ABBAA41!113&authkey=!AF5wAd9rwUPnYyE&ithint=folder%2cxlsm
    Thanks again!

    Hi,
    Based on my tested the files downloaded, I found that Test-5 & Test-6 included the "A defined name that refers to an external workbook", Test-4 had not. (Please click Formula Tab>Name Manage, you'll see them.)
    However, the Break Links command cannot break the following types of links:   
    A defined name that refers to an external workbook
    A ListBox control with an input range that refers to an external workbook.
    A DropDown control with an input range that refers to an external workbook.
    http://support2.microsoft.com/kb/291984/en-us (It also applies to Excel 2010)
    Thus, we'd better try the workaround: re-build the Test-5 & Test 6.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to restore broken links after server migration in Indesign CS3???

    Hi All,
    I have used my google skills to no avail and everything I have read here has been a dead end for me. I can't be the only person in this situation, so hopefully someone can help!
    My marketing department has reached the storage limits of our shared network drive. Located on this drive is our (HUGE) image library which acts as a single central respository serving up our indesign links (read here: we don't package files - to conserve space). We have decided that in an effort to create a true archive and have more space for our image library we need to migrate the library to a new 16 terabit Drobo (yay!).
    The problem is that every INDD file that links to the current library will now suffer from broken links. We literally have hundreds of INDD files and thousands of links. The good news is...the file structure isn't changing at all! Just the server location is changing. Is there any way to to a batch update of the links that tells INDD to look for the exact same file path on a different drive?
    In short:
    current image library (old server): marketing/image library/photos/products/multiple product folders
    new image library (new server): drobo/image library/photos/products/multiple product folders
    I want to point InDesign to the new server and have it pick up the file path without having to navigate to each and every file individually. Voila!
    Is this even possible? Is there any 3rd party software to help? Other architechture solutions that might be suggested?
    Thanks so much for the help!
    Alex

    I wrote several scripts to solve this problem, here is one of them.
    // Change paths of links.jsx
    // Script for InDesign CS3 and CS4 -- changes the path of each link in the active document.
    // Version 1.0
    // May 13 2010
    // Written by Kasyan Servetsky
    // http://www.kasyan.ho.com.ua
    // e-mail: [email protected]
    var gScriptName = "Change paths of links";
    var gScriptVer = 1;
    var gOsIsMac = (File.fs == "Macintosh") ? true : false;
    var gSet = GetSettings();
    if (app.documents.length == 0) {
         ErrorExit("No open document. Please open a document and try again.", true);
    var gDoc = app.activeDocument;
    var gLinks = gDoc.links;
    var gCounter = 0;
    if (gLinks.length == 0) {
         ErrorExit("This document doesn't contain any links.", true);
    CreateDialog();
    //======================= FUNCTIONS =============================
    function CreateDialog() {
         var dialog = new Window("dialog", gScriptName);
         dialog.orientation = "column";
         dialog.alignChildren = "fill";
         var panel = dialog.add("panel", undefined, "Settings");
         panel.orientation = "column";
         panel.alignChildren = "right";
         var group1 = panel.add("group");
         group1.orientation = "row";
         var findWhatStTxt = group1.add("statictext", undefined, "Find what:");
         var findWhatEdTxt = group1.add("edittext", undefined, gSet.findWhatEdTxt);
         findWhatEdTxt.minimumSize.width = 300;
         var group2 = panel.add("group");
         group2.orientation = "row";
         var changeToStTxt = group2.add("statictext", undefined, "Change to:");
         var changeToEdTxt = group2.add("edittext", undefined, gSet.changeToEdTxt);
         changeToEdTxt.minimumSize.width = 300;
         var btnGroup = dialog.add("group");
         btnGroup.orientation = "row";
         btnGroup.alignment = "center";
         var okBtn = btnGroup.add("button", undefined, "Ok");
         var cancelBtn = btnGroup.add("button", undefined, "Cancel");
         var showDialog = dialog.show();
         if (showDialog== 1) {
              gSet.findWhatEdTxt = findWhatEdTxt.text;
              gSet.changeToEdTxt = changeToEdTxt.text;
              app.insertLabel("Kas_" + gScriptName + "_ver_" + gScriptVer, gSet.toSource());
              Main();
    function Main() {
         WriteToFile("\r--------------------- Script started -- " + GetDate() + " ---------------------\n");
         for (var i = gLinks.length-1; i >= 0 ; i--) {
              var currentLink = gLinks[i];
              var oldPath = currentLink.filePath;
              oldPath = oldPath.replace(/:|\\/g, "\/");
              oldPath = oldPath.toLowerCase();
              gSet.findWhatEdTxt = gSet.findWhatEdTxt.replace(/:|\\/g, "\/");
              gSet.changeToEdTxt = gSet.changeToEdTxt.replace(/:|\\/g, "\/");
              gSet.findWhatEdTxt = gSet.findWhatEdTxt.replace(/([A-Z])(\/\/)/i, "/$1/");
              gSet.changeToEdTxt = gSet.changeToEdTxt.replace(/([A-Z])(\/\/)/i, "/$1/");
              gSet.findWhatEdTxt = gSet.findWhatEdTxt.toLowerCase();
              gSet.changeToEdTxt = gSet.changeToEdTxt.toLowerCase();
              if (File.fs == "Windows") oldPath = oldPath.replace(/([A-Z])(\/\/)/i, "/$1/");
              var newPath = oldPath.replace(gSet.findWhatEdTxt, gSet.changeToEdTxt);
              if (File.fs == "Windows") {
                   newPath = newPath.replace(/([A-Z])(\/\/)/, "/$1/");
              else if (File.fs == "Macintosh") {
                   newPath = "/Volumes/" + newPath;
              var newFile = new File(newPath);
              if (newFile.exists) {
                   currentLink.relink(newFile);
                   gCounter++;
                   WriteToFile("Relinked \"" + newPath + "\"\n");
              else {
                   WriteToFile("Can't relink \"" + newPath + "\" because the file doesn't exist\n");
         WriteToFile("\r--------------------- Script finished -- " + GetDate() + " ---------------------\r\r");
         if (gCounter == 1) {
              alert("One file has been relinked.", "Finished");
         else if  (gCounter > 1) {
              alert(gCounter + " files have been relinked.", "Finished");
         else {
              alert("Nothing has been relinked.", "Finished");
    function GetSettings() {
         var settings = eval(app.extractLabel("Kas_" + gScriptName + "_ver_" + gScriptVer));
         if (settings == undefined) {
              if (gOsIsMac) {
                   settings = { findWhatEdTxt:"//ServerName/ShareName/FolderName", changeToEdTxt:"ShareName:FolderName" };
              else {
                   settings = { findWhatEdTxt:"ShareName:FolderName", changeToEdTxt:"//ServerName/ShareName/FolderName" };
         return settings;
    function ErrorExit(myMessage, myIcon) {
         alert(myMessage, gScriptName, myIcon);
         exit();
    function WriteToFile(myText) {
         var myFile = new File("~/Desktop/" + gScriptName + ".txt");
         if ( myFile.exists ) {
              myFile.open("e");
              myFile.seek(0, 2);
         else {
              myFile.open("w");
         myFile.write(myText);
         myFile.close();
    function GetDate() {
         var myDate = new Date();
         if ((myDate.getYear() - 100) < 10) {
              var myYear = "0" + new String((myDate.getYear() - 100));
         } else {
              var myYear = new String ((myDate.getYear() - 100));
         var myDateString = (myDate.getMonth() + 1) + "/" + myDate.getDate() + "/" + myYear + " " + myDate.getHours() + ":" + myDate.getMinutes() + ":" + myDate.getSeconds();
         return myDateString;
    You can specify a platform-specific path name, or a path in a  platform-independent format known as universal resource identifier (URI)  notation, or Mac OS 9 path name (for Mac).
    For example any of the following notations are valid:
    Windows
    c:\dir\file (Windows path name)
    /c/dir/file (URI path name)
    //10.44.54.70/Test/images (uniform naming convention (UNC) path name of the form //servername/sharename)
    //Apple/Test/images
    \\10.44.54.70\Test\images (Windows path name)
    \\Apple\Test\images (Windows path name)
    where 10.44.54.70 IP  address of the server, Apple -- DNS name of the server, Test -- share name
    Mac
    The following examples assume that the startup volume is MacOSX, and that there is a mounted volume Remote.
    /dir/file (Mac OS X path name)
    /MacOSX/dir/file (URI path name)
    MacOSX:dir:file (Mac OS 9 path name)
    /Remote/dir/file (URI path name)
    Remote:dir:file (Mac OS 9 path name)
    Remote/dir/file (Mac OS X path name)
    You can just copy a part of the path in Links panel and paste it to the script's dialog. In CS4, make sure to choose "Copy Platform Style Path" in context menu.
    The case of the characters doesn’t matter: you can type both in upper and lowercase in the script's dialog. For example  — Test, test, TEST, TeSt — are all the same for the script.
    Regards,
    Kasyan

  • [CS5.5/CS6] what causes a kImportAndPlaceCmdBoss to throw an exception with broken links?

    I have a problem in both CS5.5 and CS6 on MacOS X.
    During a drag operation onto an InDesign document, I import and place some images onto a page. This normally works without issue except in one case. The problem case is when I'm trying to import an image that is the same file path as a broken link on the document. This will crash InDesign everytime.
    Let me provide some details.
    First, I create an InDesign document, drag some images from the Finder and place them on the page and save the InDesign document to file. Now I go to the Finder and delete the images (or just move them to a different Folder). I then go back to InDesign and look at the Links panel where the red stop signs now appear near the images to show that the links are broken.
    Next I go to a panel that I'm working on where I can drag an item from the panel and onto the InDesign document page. In this I have a ProcessDragDropCommand method that over rides the method in the CDragDropTargetFlavorHelper class, and during that method it copies the images that I just deleted back into their original locations on the file system.
    After copying the files, the process then tries to import one of the images into a new frame using the PlaceFileInFrame method from the InDesign SDK file SDKLayoutHelper.cpp. This method creates a kImportAndPlaceCmdBoss and when executing the line:
    if (CmdUtils::ProcessCommand(importAndPlaceCmd) != kSuccess) {
    causes an exception that appears in the crash report as:
    Exception Type: EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: KERN_PROTECTION_FAILUE at 0x0000000000000000
    Crashed Thread: 0 Dispatch queue: com.apple.main-thread
    with a stack trace that points to the CmdUtils::ProcessCommand() line mentioned above.
    I've tried relinking the images before the import and place, but that still doesn't work. If I break the process up so that in one drag event I copy the missing files back into place and relink them, then in a second drag event I then do an import and place it all works okay. It's just when I try the full task of copy images into place in the file system, relink the images on the InDesign document and then import and place an image in a new frame on the InDesign page that the exception is appearing.
    Instead of the kImportAndPlaceCmdBoss I've also tried the kImportAndLoadPlaceGunCmdBoss with the same problem.
    Interestingly, in the SDKLayoutHelper method PlaceFileInFrame that I'm using, there's a pragma message:
    #pragma message("LINKREWORK: Temporary, fix this up later!")
    // TODO: LINKREWORK fix.
    From the wording I'm wondering if this is related to the problem that I'm seeing. In which case does anyone know what this fix might entail?
    I've tried tried relinking using ReinitResource and UpdateLinks methods that are a part of the ILkniFacade but that doesn't seem to help stop the crash.
    Oddly, I can generate a strange and maybe related error (that doesn't use my plugins and just the raw InDesign functionality) if I do something like:
    In InDesign, create an InDesign document.
    From the Finder, drag some images onto the InDesign document page.
    In InDesign, save the document.
    In the Finder, rename the folder containing the images.
    In InDesign, check that the links really are broken with the red stop signs appearing.
    In the Finder, rename the folder containing the images back to what it was before.
    (Extra Step)
    In the Finder, redrag the same images that you did before onto the InDesign page.
    This will cause InDesign to throw up the following error message:
    Either the file does not exist, you do not have permission, or the file may be in use by another application
    Of course, if in the above you introduce an Extra Step where you just go back to InDesign and do nothing. InDesign will relink the once missing images, so that when you go back to the Finder to drag the images there's now no problem.
    This is almost like InDesign needs a few IdleTasks in order to sort out its perception of the file system. If that's the case then I'm a bit stuck as I'm trying to do everything during a single drag operation and there's no chance of any IdleTasks occuring.
    Any ideas?

    I have checked the Tomcat log, which does not give
    much information:
    ----- Root Cause -----
    org.apache.artimus.message.exceptions.MessageDAOSysExce
    tion: Error executing SQL in
    ThreadHandler.createThread.
    at
    org.apache.artimus.message.dao.MySQLMessageDAO.createT
    read(MySQLMessageDAO.java:54)
    at
    org.apache.artimus.message.ThreadHandler.insertThread(
    hreadHandler.java:42)
    at
    org.apache.artimus.message.StoreMessage.execute(StoreM
    ssage.java:61)
    at
    org.apache.struts.action.RequestProcessor.processActio
    Perform(RequestProcessor.java:484)Tomcat has more than one log file. The servlet's System.out messages must be going to a different file if this is all you are seeing. Either look in the other log files or change the lines
             se.printStackTrace();
             throw new MessageDAOSysException("Error executing SQL in ThreadHandler.createThread.");  // line 54 where the problem occurredto simply read:
            throw se;and the actual Exception you want to investigate will go in to the file where you found the above. This will be less useful in the long run as you'll have the same problem when you want to query the SQLException further with System.out.println(se.getSQLState()); etc.
    You could add a logging configuration to your servlets context in server.xml so you can define where such messages get logged.
    Alternatively you could use a logging API like log4j.

  • How do I restore files from TM backups with broken links?

    I have Time Machine backups with broken links all over the more recent backups.
    I get the message "The alias “xxx” can’t be opened because the original item can’t be found." whenever I click on one of the links.
    I have made the backups on my external usb backup drive before before upgrading my internal disk to a larger one.
    Two questions: 1) How can I recover the files?  2) What happened, how can I repair the backup if possible?
    The sequence of events was: Made the latest backup.  Apple ran extended diagnostics overnight at the store and did a reinstall of the OS (10.8.2).  I passed on restoring the backup and went to an authorized service center and had them put in a new tera-byte drive.  I deleted (in the star-wars display) the oldest two and a middle backup leaving the Aug, Oct, and latest Nov. backups.
    Now I see 100's 1000's of bad links.  If I look at the backup (just look) with finder I can see directories for July and Sept in addition to the ones I didn't delete.
    It appears that the files are probably all there and I could recover them a few at a time if I poke around.
    I am tempted to do this before trying to repair the disk.  Yes, it will take me ages; but I would rather take the time than a chance at doing -Anything- that could even possibly make things worst.  I can see 3 senarios and wonder if anyone can say what would be best. And by best I mean **Safest**.
    1) Go in TM to the Aug backup that seems to have no (or maybe only a few) broken links and restore that; then move in TM to newer backups and restore one folder or file at a time on top of it.
    2) Do the same thing with a restore of Aug but then use the finder to copy newer files from the backup disk to the new disk.
    3) Do essentially the same thing; but do it all in finder.
    Of course that still begs the question of what happened and if the backup can be repaired; but to me, that is secondary to getting the data back.
    fyi- I have looked at the TM hints and debug-repair file.  I realize I can try a repair disk but I am tempted to try to get the data 1st unless someone is Sure a repair won't mung the data more.
    Thanks

    The section titled "Restoring data from Time Machine backups" in the following may help: http://support.apple.com/kb/HT1427

Maybe you are looking for