Relinking broken links with JSX

Okay,
Say I have a series of folders and I have linked art and the files they are linked to all mixed up in these folders. My file structure is as such;
myFiles\HH01000-01999\HH01000-HH01099\HH001001.PDF
and now I need to change the file structure to this;
myFiles\HH\HH01000-01999\HH01000-HH01099\HH001001.PDF
adding the folder HH breaks the links.
What is the best way to identify the broken link and change its path with JSX? Anybody got any ideas?

Thanks Carlos,
this is how i ended up getting it done.
function changeLinkedArt () {
    linkedPath = app.activeDocument.placedItems;
    outcome = 0;
for(i=0; i < linkedPath.length; i++) {
    linkedPathArray = linkedPath[i].file.path.split("/");
    for(j=0; j < linkedPathArray.length; j++) {
        if(linkedPathArray[j] === "HH") {
            outcome = 1;
    if (outcome === 0) {
        fileName = linkedPath[i].file.toString();
        linkedFileArray = fileName.split("/");
        for(k=0; k < linkedFileArray.length; k++) {
            if(linkedFileArray[k] === "illustrations") {
                linkedFileArray[k] = linkedFileArray[k] + "/HH";
                NewIndexLine = linkedFileArray.join("/");
                //alert(NewIndexLine);
                linkedPath[i].file=File(NewIndexLine);
    outcome = 0;
modified an adobe script to open all files in a folder and run the script on all of them.
wanted to build some arrays to change all files in multiple folders but i could not get the ".getFiles( fileType );" to take a path instead of the Folder.selectDialog.
thats the only thing that bugs me.

Similar Messages

  • Broken links with index keywords

    Using RH 8, I have 20 broken links associated with index keywords. can someone advise how to easily get rid of these broken links?
    Many thanks

    I assume you are talking about links to index keywords rather than unused index keywords. If so, you have references to those index keywords somewhere inside your project. Your options are to repair the links or remove the references. If you right click on each broken link there are options to Edit, Restore and Show References which will help you find out what is going on.
      The RoboColum(n)
      @robocolumn
      Colum McAndrew

  • Resolve Broken Links with No Reference

    I have many broken links in a webhelp project that I cannot
    resolve because there is no reference. Is there a way to delete
    broken links?

    Hi, I have a similar problem and cannot seem to get rid of a
    bunch of broken links.
    Basically at some point this project file had an html
    subfolder that was taken out. Consequently many topics had
    html\<topicname>.htm and then became <topicname>.htm.
    My problem is now that these files with the html\ folder are
    under broken links and now don't reference or link to anything if I
    right-click on them. I cannot restore them, delete them, or edit
    them in any way.
    I find that it is also creating problems when the WebHelp is
    generated and put on our server, several topics give a "file not
    found" error because they are searching for html\ in the filename
    and of course cannot find it. I have fixed these by searching and
    getting rid of any reference to \html in the topic files, but a few
    still don't link properly. Even after creating a new table of
    contents and re-linking all topics and images it does the same, AND
    has these broken links still listed.
    Any ideas? I realize this may be several problems. I think
    someone in the past deleted the html folder outside of RoboHelp and
    it messed everything up. We are taking about a Help file with over
    700 topics, so it is a real beast to work with.
    Thanks,
    Joel

  • Broken links with PDF Portfolio

    When I've created links within Adobe Acrobat to another document that's already within the Adobe Portfolio sometimes the links don't properly source to the correct page number. Instead, the link will source to the correct document but then filter to the first page rather than the page number that I set the link up with. Also, sometimes the link will break and will instead source to the home page rather than the requested document. Has anyone come across this issue or developed any workarounds?

    When creating the links (using the Link tool), you need open rather than just preview the destination file.

  • Broken link with libraries

    no response?
    was my previous posting too obscure?
    I'll try again. both my itunes library and my iphoto library are still intact except that the 'link' connecting them to their software is broken (please excuse the layman speak).
    itunes library is on my external hard drive whilst i reimported iphoto to the imac attempting to fix this problem following the instructions in 'help' has no effect i have redirected the folder location in the itunes preferences but still no library, restarting iphoto does not give me any option to click on finding the library.
    i am running itunes 6 and iphoto 2 and if you look at my computer specs I'm not able to (and its not worth) installing ilife

    Hi, jabecca. This is an iPhoto forum, and there's little point in mentioning iTunes in it — there are other Discussions forums for that, and you would do better to post your iTunes problem in one of those forums.
    As for iPhoto: now that you're running iPhoto 2, what happens if you hold down the Option key (= the Alt key on some keyboards) while opening iPhoto from the Dock? Are you invited to either create a new library or find an old one? If so, choose "Find Library" and navigate to the library folder you want iPhoto to use. It shouldn't make any difference whether that folder is located on your internal or your external hard drive: iPhoto should continue to use it each time you open iPhoto, until you select another library folder in the same manner.

  • Broken links with new EXT HDD

    My Aperture library sits on a networked EXT HDD called Pictures HD. I decided the drive was getting a little old so swapped it for a new one. I've copied the entire contents over to the new drive, given it exactly the same name (Pictures HD) but when I open Aperture, all my referenced files are showing up as disconnected. I can't see why this should be as the new drive is basically a clone of the old one.
    Any ideas what I need to be doing differently?

    If you have already, outside of Aperture, copied all of your referenced files to the new HD (and kept your Library on your system HD), don't use "Relocate Masters". That would have been a better way to populate your new HD -- but that is already done. Use "Locate Referenced Files". This command allows you to tell Aperture to, in fact, locate the Masters of the images in the Library. If you copied without alteration the folder structure of the referenced files, you will be able to simply tell Aperture where one of the Masters is on your new HD, and Aperture will find all the others.
    Alternatively, you could wipe the new drive clean with a fresh format, then use the "Relocate Masters" command with both the old and the new HDs mounted.
    In general, it is recommended that other than back-up you do all file management from within Aperture. Both "Relocate Masters" and "Locate Referenced Files" work well.

  • Rename Topics and Broken Links

    I am currently working on a project and have had to rename
    several topics. Now those newly-named topics display as broken
    links with the old topic name. I've never had this happen before.
    Any ideas or suggestions?

    1. You have to rename them within the RH project.
    2. You have to be working the project on your local drive.
    If you answer No to either, you have your answer.
    Good luck,
    Leon

  • [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

  • I want to delete all the songs with broken links at once

    I lost a file with a lot of songs on it and it can't be retrieved.  How can I delete all the song titles with broken links at once without having to delete 500 songs one at a time?

    One way to identify the broken links in your library is to create this set of playlists:
    Lost & Found playlists
    Create a playlist called Found, select everything in Music and drag it into the Found playlist. Create a smart playlist called Lost matching All the rules Playlist is Music and Playlist is not Found. Your lost tracks will be in this playlist. They can be deleted with CTRL+A then SHIFT+DELETE.
    Or use iTunes Folder Watch and enable its option to check for dead tracks on startup.
    If you have any Apple devices that could hold the lost media see this user tip.
    Finally, while I'm handing out advice, see this backup tip to avoid this problem again.
    tt2

  • Files with broken links that only show in Smart Playlists

    Hello,
    My issue is a strange one, so please bear with me. First - I've had the same iTunes library for several version of iTunes. That might have something to do with my issue. The issue is that when I create a Smart Playlist filtering for genre=podcasts, there are numerous files listed there with broken links. If I flip over to the Podcast category under my Library, these files do not appear. I'd like to delete these broken links, but since they only appear in a Smart Playlist I can't delete them from there. My feeling is that the iTunes library database just has some left over records from previous files. Does anyone know how to edit the library or is there some 3rd party utility that can clean up these hidden records for me?
    Thanks in advance for any help!

    The issue is that when I create a Smart Playlist filtering for genre=podcasts, there are numerous files listed there with broken links. If I flip over to the Podcast category under my Library, these files do not appear.
    Podcasts are not put into the Podcast category by the Genre just as Audiobooks ar enot put into Audiobooks category by the Genre.
    It is info in the file and when it is downloaded that makes it a podcast or audiobook.
    Likely these podcasts are under Music.
    Hold Option and click on the arrow next to the item name. This should take you to the item in the library, wherever it is.
    Also, you can hold hold Option and press Delete. This will remove the item from the playlist and also delete it from the library.

  • Broken Link Report with Variables

    In my broken links report, I have many links that contain dynamic variables that will be realized at execution time and are not static links.
    I have included some code from our page(s) below.
    This process works extremely well for our web pages, but I would like to clear up the broken link report.
    Is there a way to keep the code as is and have them removed from the broken link report, or is there better way to do this?
    Example:  
    <cfoutput query = “getDBcontent”>
    <cfset FileName =“../projectweb/images/#getDBcontent.FileType#.gif”>
    <cfset FileTitleAlt = “The title of this document is: #getDBcontent.FileTitle#”>
    <img src=”#FileName#” alt=”#FileTitleAlt#”> #currentrow# <a href=”../projectweb/files/#getDBcontent.Table_FileName#”
                     target=“_blank”>#getDBcontent.Table_FileNameTitle#</a><br />
    </cfoutput>
    After Execution:
    <img src=”pdf.gif” alt=”The title of this document is: Search Lists for Dummies”> 1
    <a href=”../projectweb/files/Search_Lists_for_Dummies.pdf” target=“_blank”> Search Lists for Dummies </a><br />
    <img src=”pdf.gif” alt=”The title of this document is: Adobe Dreamweaver CS5 with PHP”> 2
    <a href=”../projectweb/files/Adobe_Dreamweaver_CS5_with_PHP.pdf” target=“_blank”>
    Adobe Dreamweaver CS5 with PHP </a><br />
    <img src=”doc.gif” alt=”The title of this document is: How to Build a House”> 3
    <a href=”../projectweb/files/How_to_Build_a_House.doc” target=“_blank”> How to Build a House </a><br />
    <img src=”docx.gif” alt=”The title of this document is: Adobe Dreamweaver CS5 Classroom in a Book”> 4
    <a href=”../projectweb/files/Adobe_Dreamweaver_CS5_Classroom_in_a_Book.docx” target=“_blank”>
    Adobe Dreamweaver CS5 Classroom in a Book </a>
    The broken link report shows the following:
    FILES                                                      Broken Links
    /Books.cfm                                         ../projectweb/files/#getDBcontent.Table_FileName#
    /Books.cfm                                         #top
    /Books.cfm                                         #bottom
    Thank you in advance...
    Roger

    Thanks for taking a look Murray. Here are some samples (The domain for our page is www.insurance.wa.gov)
    social/index.shtml
    http://www.facebook.com/WSOIC
    social/index.shtml
    http://twitter.com/WAinsuranceblog
    social/index.shtml
    http://access.wa.gov/washington/blogs.aspx
    social/index.shtml
    http://access.wa.gov/washington/facebook.aspx
    social/index.shtml
    http://access.wa.gov/washington/twitter.aspx
    Our page to the left, the broken link to the right of course.

  • Links with special characters work on the web, but are broken in RSS feed

    Hi everyone,
    I've been searching the forum, but haven't found anything relevant.
    Here is my problem. Most embedded links on my blog posts work fine. However, sometimes I use links with embedded special characters. Here's an example link to a YouTube video:
    http://www.youtube.com/watch?v=ugiY9t6fzo4
    When I go to my blog on the web and click on the link, the link works fine. BUT, when I look at my RSS feed from the blog, the link gets transformed into:
    http://www.youtube.com/watch%253Fv%253DugiY9t6fzo4
    ... which doesn't work.
    Something (I presume iWeb?) replaces the "?v=" with "%253Fv%253D"
    Obviously, I get a lot of e-mail from my RSS subscribers telling me about broken links.
    What can I do? Does anyone else have this issue?

    I followed the topic concerning the Firefox photoalbum problem but I´m using Safari and the albums will not show up on the web !!!! I also exchanged the detailview and headercontrol *js which worked fine for opening the photoalbum on my harddisk with firefox. But when its uploaded to the server it won´t display and that in Safari!!!! On the published folder on my harddisk everything works fine
    www.voyage64.com
    just cklick on "photoalben" no album apears. Does anyone have the same problem with safari ???
    regards,
    David

  • How can we remove podcasts with broken links?

    The organization I work for has some old podcasts (2011) listed in iTunes; the links to all the MP3s are broken. No one in the organization has any idea who posted these items in the first place, so needless to say, we have no idea what account they're linked to. We'd just like for those podcasts to stop appearing in iTunes -- is there a way to flag the broken links so the podcasts don't show up any more?
    Thanks in advance.

    The feed for that is still up at
    http://feeds.feedburner.com/RichardRohrHomilies
    Ideally you should remove it, which would ensure it being removed from the Store (a cached version would show until they removed it) - however you will need the login to Feedburner to do this, which presumably you don't have. In that case you can only hope that the fact that none of the media files can be accessed will be sufficient.
    The author is Father Richard Rohr at Holy Family Church, Albuquerque, and the 'Generator' (the technical source of the feed) is listed as the Center for Action and Contemplation.

  • 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

Maybe you are looking for

  • Acrobat 7 standard

    I use acrobat 7 standard, show this"The application is being terminated because of memory corruption" & and can't update . how to do that?

  • New feature in CS-4

    A few mont ago I saw a new feature in cs4, I'm not sure if it is here in dreamweaver or in photoshop itself... I'll try to explain. This device gives to the people on a website the possibility to navigate into a bigger image on my server, when you zo

  • Transferrng Data from Old Computer

    I have a 2008 MacBook and I just purchased a 2010 MacBook Pro. I realize I had the opportunity to transfer all the data from my 2008 MacBook to my new MacBook Pro when I first turned on the MacBook Pro BUT I for a number of reasons I did not. For one

  • Generate HTML REPORTS Help

    hai.... i am new to this field i need some help regarding how to generate html report ... well i am using db2 as my database .....and these reports are not crystal reports..... i have to generate some fields information from multiple tables in the da

  • Export problems with pictures (Vista 64 Bit)

    Hi, I´ve a problem with publishing my CBT from captivate 4 to an executable file (.exe). The CBT contains slides with time-delayed text captions and images. In the preview mode eveything looks perfect and works well, but when using the "publish" butt