Relink syntax - VB - CS4

I just upgraded to CS 4 and I am going through and updating my scripts. I have a script that goes through text boxes and updates the links to a new path. I keep getting an error when I relink.
syntax example....
'This is how I define what link I want to relink
myLink = myTextFrame.ParentStory.ItemLink
strLink = "C:\1-Setup...." 'Path goes here
myLink.Relink(strLink)
myLink.Update()
This used to work fine is CS2. Is there something I am doing wrong?
Thanks in advance

Hi, Mark.
Try this:
myLink = myTextFrame.ParentStory.ItemLink
strLink = "C:\1-Setup...." 'Path goes here
Dim fso, fileLink
Set fso = CreateObject("Scripting.FileSystemObject")
Set fileLink = fso.GetFile(strLink) 'Path goes here
myLink.Relink(fileLink) 'fileLink is file, not string
myLink.Update()
Best regards

Similar Messages

  • Batch renaming and relinking in InDesign CS4

    Is there a plug-in available for InDesign that will batch rename and relink placed images?
    In Quark, I used Badia Link Renamer which worked perfectly but it's not available for InDesign. (Was told they hope to have it incorporated into BigPicture for CS5.)
    Is there something similar currently available for InDesign?
    Essentially I need it to rename and relink files with random names to structured names such as:
    001_Cust_000123456789_art_r1.tif
    (I love that Bridge does batch renaming but then I have to manually update links in InDesign which is extremely time-consuming. I've also manually renamed/relinked files individually with Adobe Dialogue but it doesn't seem to be part of CS4.)
    Any help or suggestions would be greatly appreciated! Been looking for something for months.
    Thanks!

    Here is my last version of the script, it deals with multiple instances of the same file.
    Kasyan
    var myDoc = app.activeDocument;
    var myAllLinks = myDoc.allGraphics;
    var myMultipleLinks = new Array();
    var myLinksCounter = 1;
    var myPrepend = prompt("Example: thebook_08765", "Job description", "Please enter job description");
    if (!myPrepend) exit();
    var response = confirm("Warning: You are about to rename all images linked to the foremost Indesign Document - proceed? Keep in mind - it is not reversible!", false, "Rename Links Script");
    if ( response == true )
         WriteToFile("\r--------------------- Script started -- " + GetDate() + " ---------------------\n\n");
         for ( k = 0; k < myAllLinks.length; k++ )
              var myLinkName = myAllLinks[k].itemLink.name;
         crearLabels();
         var myPages = myDoc.pages;
         // Pages
         for ( p = 0; p < myPages.length; p++ )
              var myPageNumber = pad000(myPages[p].name);
              var myLinks = myPages[p].allGraphics;
              var myASCII = 97;
              for ( k = myLinks.length - 1; k >= 0; k-- )
                   var myLink = myLinks[k].itemLink;
                   if (myLink.extractLabel("relinked") != "yes") {
                        var myOldLinkName = myLink.name;
                        var myLinkUsage = LinkUsage( myLink );
                        var myExtension = myOldLinkName.substr(myOldLinkName.lastIndexOf( "." ));
                        if (LinkUsage(myLink) == 1)
                             var myNewLinkName = myPrepend + myPageNumber + String.fromCharCode( myASCII ) + myExtension;
                             var myOldImageHDfile = new File( myLink.filePath );
                             var myRenameResult = myOldImageHDfile.rename( myNewLinkName );
                             if (myRenameResult)     {
                                  myLink.insertLabel("relinked", "yes");
                                  myLink.relink( myOldImageHDfile );
                                  try {
                                       myLink = myLink.update();
                                  catch(err) {}
                                  myASCII++;
                                  WriteToFile(((myLinksCounter < 10) ? (" " + myLinksCounter) : myLinksCounter) + " - " + myOldImageHDfile.name + " --> " + myNewLinkName + "\n");
                                  myLinksCounter++;
                             else {
                                  if (new File(myOldImageHDfile.parent + "/" + myNewLinkName + myExtension).exists) {
                                       WriteToFile("CAN'T RENAME LINK -- " + myOldImageHDfile.name + " to " + myNewLinkName + " because the file already exists\n");
                                  else {
                                       WriteToFile("CAN'T RENAME LINK -- " + myOldImageHDfile.name + "\n");
                        else {
                             if (!IsObjInArray(myLink, myMultipleLinks)) {
                                  myMultipleLinks.push(myLink);
         var myMasterSpreads = myDoc.masterSpreads;
         // Master spreads
         for ( m = 0; m < myMasterSpreads.length; m++ )
              var myMastSpr = myMasterSpreads[m];
              var myPageNumber = myMastSpr.name;
              var myPrefix = myMastSpr.namePrefix;
              var myLinks = myMastSpr.allGraphics;
              var myASCII = 97;
              for ( n = myLinks.length - 1; n >= 0; n-- )
                   var myLink = myLinks[n].itemLink;
                   if (myLink.extractLabel("relinked") != "yes") {
                        var myOldLinkName = myLink.name;
                        var myExtension = myOldLinkName.substr(myOldLinkName.lastIndexOf( "." ));
                        if (LinkUsage(myLink) == 1)
                             var myLinkLetter = (myLinks.length == 1) ? "" : String.fromCharCode( myASCII );
                             var myNewLinkName = myPrepend + '_master_' + myPrefix + myLinkLetter + myExtension;
                             var myOldImageHDfile = new File( myLink.filePath );
                             var myRenameResult = myOldImageHDfile.rename( myNewLinkName );
                             if (myRenameResult) {
                                  myLink.insertLabel("relinked", "yes");
                                  myLink.relink( myOldImageHDfile );
                                  try {
                                       myLink.update();
                                  catch(err) {}
                                  myASCII++;
                                  WriteToFile(((myLinksCounter < 10) ? (" " + myLinksCounter) : myLinksCounter) + " - " + myOldImageHDfile.name + " --> " + myNewLinkName + "\n");
                                  myLinksCounter++;
                             else     {
                                  if (new File(myOldImageHDfile.parent + "/" + myNewLinkName + myExtension).exists) {
                                       WriteToFile("CAN'T RENAME LINK -- " + myOldImageHDfile.name + " to " + myNewLinkName + " because the file already exists\n");
                                  else {
                                       WriteToFile("CAN'T RENAME LINK -- " + myOldImageHDfile.name + "\n");
                        else
                             if (!IsObjInArray(myLink, myMultipleLinks)) {
                                  myMultipleLinks.push(myLink);
         // Multiple images
         if (myMultipleLinks.length > 0) {
              for ( a = myMultipleLinks.length - 1; a >= 0; a-- )
                   processMultiUsedLinks(myMultipleLinks[a]);
         WriteToFile("\r--------------------- Script finished -- " + GetDate() + " ---------------------\r\r");
         if (myLinksCounter == 0) {
              alert("No links have been renamed", "Rename Links Script");
         if (myLinksCounter == 1) {
              alert("One link has been renamed", "Rename Links Script");
         else if (myLinksCounter > 1) {
              alert(myLinksCounter  + " links have been renamed", "Rename Links Script");
    //--------------------------------------------- Functions ------------------------------------------------
    // Check how many times the link was placed
    function LinkUsage(myLink) {
         var myLinksNumber = 0;
              for (var c =  0; c < myDoc.links.length; c++) {
              if (myLink.filePath == myDoc.links[c].filePath) {
                   myLinksNumber += 1;
         return myLinksNumber;
    // Relink the links placed more than once
    function processMultiUsedLinks(myLink) {
         var myExtension = myLink.name.substr(myLink.name.lastIndexOf( "." ));
         var myMultiUsedLink = new Array();
         var myAllLinks = myDoc.links;
         for (var d = 0; d < myAllLinks.length; d++)  {
              if (myAllLinks[d].filePath == myLink.filePath) {
                   myMultiUsedLink.push(myAllLinks[d]);
         try {
              myLink.show();
         catch(err) {}
         var myNewLinkName = prompt ("Enter a name for this image", GetFileNameOnly(myLink.name), "This image is placed " + myMultiUsedLink .length + " times");
         if (myNewLinkName) {
              if ( myNewLinkName + myExtension != myLink.name ) {
                   var myOldImageHDfile = new File( myLink.filePath );
                   var myRenameResult = myOldImageHDfile.rename( myNewLinkName + myExtension );
                   if (myRenameResult) {
                        myLink.insertLabel("relinked", "yes");
                        myLink.relink( myOldImageHDfile );
                        try {
                             myLink = myLink.update();
                        catch(err) {}
                        WriteToFile(((myLinksCounter < 10) ? (" " + myLinksCounter) : myLinksCounter) + " - " + myOldImageHDfile.name + " --> " + myNewLinkName + "\n");
                        myLinksCounter++;
                        for (f = myMultiUsedLink.length-1; f >= 0 ; f--)
                             var myCurrLink = myMultiUsedLink[f];
                             if ( myNewLinkName + myExtension != myCurrLink.name ) {
                                  myCurrLink.insertLabel("relinked", "yes");
                                  myCurrLink.relink( myOldImageHDfile );
                                  try {
                                       myCurrLink = myLink.update();
                                  catch(err) {}
                   else     {
                        if (new File(myOldImageHDfile.parent + "/" + myNewLinkName + myExtension).exists) {
                             WriteToFile("CAN'T RENAME LINK -- " + myOldImageHDfile.name + " to " + myNewLinkName + myExtension + " because the file already exists\n");
                        else {
                             WriteToFile("CAN'T RENAME LINK -- " + myOldImageHDfile.name + "\n");
         UpdateAllOutdatedLinks();
    // Clear labels in case this script has been already run on the current document
    function crearLabels() {
         for (var f =  0; f < myDoc.links.length; f++) {
              if (myDoc.links[f].extractLabel("relinked") != "") {
                   myDoc.links[f].insertLabel("relinked", "");
    function UpdateAllOutdatedLinks() {
         for(var myCounter = myDoc.links.length-1; myCounter >= 0; myCounter--){
              var myLink = myDoc.links[myCounter];
              if (myLink.status == LinkStatus.linkOutOfDate){
                   myLink.update();
    function pad000(myNumber) {
         if (myNumber >= 1 && myNumber <= 9) {
              x =  "0" + "0" + myNumber;
         } else if (myNumber >= 10 && myNumber <= 99) {
              x = "0" + myNumber;
         } else if (myNumber >= 100 && myNumber <= 999) {
              x = myNumber;
         return x;
    function GetFileNameOnly(myFileName) {
         var myString = "";
         var myResult = myFileName.lastIndexOf(".");
         if (myResult == -1) {
              myString = myFileName;
         else {
              myString = myFileName.substr(0, myResult);
         return myString;
    function IsObjInArray(myObj, myArray) {
         for (x in myArray) {
              if (myObj.filePath == myArray[x].filePath) {
                   return true;
         return false;
    function WriteToFile(myText) {
         myFile = new File("~/Desktop/Rename Links Script.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;

  • CS4 - Relink causes protective shutdown

    Hi,
    I use the following code to relink items in CS4:
    bool16 Relink(IDFile file) {
        IDataBase* db = ::GetDataBase(this);
        if(!db) {
            return false;
    #if kMajorVersionNumber == 6
         PMString formatName;
         ErrorCode err = kFailure;
         URI linkURI;
         InterfacePtr<ILinkManager> iLinkManager(db, db->GetRootUID(), UseDefaultIID());         
         InterfacePtr<ILink> iLink(db, GetLinkUID(), UseDefaultIID()); //GetLinkUID is a function defined elsewhere
         UIDRef iLinkUIDRef = UIDRef(db, GetLinkUID());
         URI fileURI;
         Utils<IURIUtils>()->IDFileToURI(file, fileURI);
         UID newLinkUID;
         Utils<Facade::ILinkFacade>()->RelinkLink(iLinkUIDRef,fileURI,kSuppressUI,newLinkUID);
    #else
         //CS3 code
    #endif
        return true;
    In most cases the code works perfectly, however once I encountered a crash on Mac, resulting in the following partial stack trace:
    Thread 0 Crashed:
    0   PublicLib.dylib                     0x014beb27 ProtectiveShutdown::~
    ProtectiveShutdown() + 279
    1   ...adobe.InDesign.AppFramework      0x1db851b9 0x1db6c000 + 102841
    2   PublicLib.dylib                     0x01489b1b CmdUtils::ProcessCommand(ICommand*) + 59
    3   com.adobe.InDesign.Links            0x228b7740 GetPlugIn + 102736
    4   com.adobe.InDesign.Links            0x228ba2ba GetPlugIn + 113866
    5   com.adobe.InDesign.Links            0x2287cb45 0x227ff000 + 514885
    6   com.adobe.InDesign.MyPlugin              0x1f548e03 Relink(IDFile) + 339
    How can i modify my code in the Relink function so that this cannot occur?
    Why do the ProcessCommand cause a Protective Shutdown?
    I really hope somebody can clarify this problem.
    Thanks
    Kind regards Toke

    Yes, you should check the global error code after any operation which may fail. 
    Typically you find out about these when they fail and you protective shutdown from not checking. 
    However, any time you call an InDesign API, it *could* call a command, so you really ought to check all the time, but there's lots of simple routines which you shouldn't have to check.  Basically anything that returns an error code shouldn't set the global error code.
    Note the key use of "shouldn't" there.
    Jon

  • Text wrap type syntax is not supported in Indesign CS4

    Dear all,
    Text wrap type syntax is not supported in Indesign CS4. How to set the text wrap type in indesign CS4

    Hey!
    app.selection[0].textWrapPreferences.textWrapMode = TextWrapModes.CONTOUR;
    TextWrapModes.BOUNDING_BOX_TEXT_WRAP
    Wraps text around the object's bounding box.
    1651729523 = 'bsds'
    TextWrapModes.CONTOUR
    Wraps text around the object following the specified contour options.
    1835233134 = 'mcon'
    TextWrapModes.JUMP_OBJECT_TEXT_WRAP
    Forces text to jump above or below the object, so that no text appears on  the object's right or left.
    1650552420 = 'band'
    TextWrapModes.NEXT_COLUMN_TEXT_WRAP
    Forces text to jump to the next available column.
    1853384306 = 'nxfr'
    TextWrapModes.NONE
    No text wrap.
    1852796517 = 'none'
    tomaxxi

  • "relink" problem in InDesign CS4: links are updated automatically

    Hi folks,
    we use a script to relink our InDesign documents when the links have been moved on the file system.
    Inside the script we just call link.relink(...) but not link.update().
    We experience a different behavior between CS3 and CS4 after the script has run.
    CS3:
    Links that have been modified after moving and before relinking are then shown as modified (with a yellow mark ) in the Links tab.
    CS4:
    The links are all shown as uptodate.
    Seems like the update()-function has been called automatically.
    Is there a option to just relink the links in CS4 but not to update them?
    Kind regards
    Matthias Vieback

    mahony2k wrote:
    Thank you for the help, Robin!
    Restoring everything after relinking would be as risky as the automatic updates. I would need a warning when the VisibleBounds have changed after updating. Maybe with an option to restore them one by one while I'm looking at the image which is being restored.
    Of course this can't be full-automat But there is posibility to define list of rules what could be done automatically in specified conditions.
    List of all linked images could look like this:
    (I'm sorry for old screen)
    Is it only for PC, because it would be a VBscript?
    It will be VisualBasic6 app compiled to exe.
    I can even do it as a "service" - so you can put INDD file in special folder (WatchedFolder) and script can analyze INDD file, make report and then you can decide "off-line" what should be done with "problematic" images.
    I think I can even make it with option to see preview of "problematic" images in report so you can make decision without opening INDD file. Then you can upload report with selected options back to WatchedFolder to finish "conversion".
    Even if you work on Mac - it shouldn't be a problem for you to use this tool - you only need to have one PC connected to your local network. To go further - on the same PC could be installed web server (Apache+PHP+mySQL) and you can controll everything from web browser
    robin
    www.adobescripts.co.uk

  • CS4 fails to Relink images

    I have a VB script that ran fine with CS2 and CS3, but when I run it with CS4 it fails when I call the Relink method on a Link object. Has anyone experienced any issues with relinking in CS4.

    After running into this issue also.  Here is some code I came up with for .NET developers.
    C# code
    private void Relink(InDesign.Link link, string filename)
    object fileSystemObject =
    Microsoft.VisualBasic.Interaction.CreateObject("Scripting.FileSystemObject", "");
    Type fileSystemObjectType = Type.GetTypeFromProgID("Scripting.FileSystemObject");
    object file = fileSystemObjectType.InvokeMember("GetFile", System.Reflection.BindingFlags.InvokeMethod, null, fileSystemObject, new object[] { filename });
    link.Relink(file);
    link.Update();
    VB.NET code
    Sub Relink(ByVal Link As InDesign.Link, filename as String)
    Dim fileSystemObject
    fileSystemObject = CreateObject("Scripting.FileSystemObject")
    Link.Relink(fileSystemObject.GetFile(filename))
    Link.Update()
    End Sub

  • (CS4) (AS) Syntax for assigning existing Preflight Profile

    Building an AppleScript workflow to tie a FileMaker database to IDCS4, using Triple Triangle's Job Spec Cubed. Very fun.
    I'd like to add a tell statement to assign existing Preflight Profiles to existing documents. We have four standard preflight profiles, named "72", "150", "200", "300" and "360". I know the syntax to load the profiles from an external source, but I'm stumped on how to assign them then embed them.
    tell application "Adobe InDesign CS4"
    set myDocument to active document
    set myPage to page 1 of spread 1 of myDocument
    tell myDocument
    set preflight profile to "72"
    end tell
    end tell
    Any thoughts?
    Thanks

    So, the correct syntax is:
    tell application "Adobe InDesign CS4"
    set myDocument to active document
    set myPage to page 1 of spread 1 of myDocument
    tell myDocument
    embed using "150"
    end tell
    end tell
    for the imbed command, you can use any known preflight profile. In my case, I'm going to pass through the name of the profile as a FileMaker variable.
    Very cool.
    Thanks again, Shane.

  • DreamWeaver CS4-CS5 Creates Syntax Errors

    I cannot seem to find any info on this online but my DreamWeaver CS4 and a trial of DreamWeaver CS5 both create PHP and SQL queries that are loaded with syntax errors. I use XAMPP on my computer as I have done for years, and it works fine with phpMyAdmin and Komodo Edit. DreamWeaver has been a nifty app to quickly knock out simple applications in that past, but now I spend too much time manually correcting syntax errors in PHP page queries.
    Has anyone there heard of a fix for this? Several other web developers have told me that they entirely abandoned DW CS* series and moved on to other IDE's rather than try to fix the problem.
    EXAMPLE:
    Here is what it wrote:
    if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
      $updateSQL = sprintf("UPDATE `mysite` SET about-yn=%s, about-h1=%s, about-p1=%s, about-p2=%s, about-p2-img=%s, about-p3=%s, about-p3-img=%s, about-p4=%s, about-p4-img=%s WHERE siteID=%s",
                           GetSQLValueString($_POST['aboutyn'], "text"),
                           GetSQLValueString($_POST['abouth1'], "text"),
                           GetSQLValueString($_POST['aboutp1'], "text"),
                           GetSQLValueString($_POST['aboutp2'], "text"),
                           GetSQLValueString($_POST['aboutp2img'], "int"),
                           GetSQLValueString($_POST['aboutp3'], "text"),
                           GetSQLValueString($_POST['aboutp3img'], "int"),
                           GetSQLValueString($_POST['aboutp4'], "text"),
                           GetSQLValueString($_POST['aboutp4img'], "int"),
                           GetSQLValueString($_POST['siteID'], "int"));
    Here is what it should have written:
    f ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
       $updateSQL = sprintf("UPDATE `mysite` SET  `about-yn`=\"%s\", `about-h1`=\"%s\", `about-p1`=\"%s\", `about-p2`=\"%s\", `about-p2-img`=\"%s\",  `about-p3`=\"%s\", `about-p3-img`=\"%s\", `about-p4`=\"%s\", `about-p4-img`=\"%s\" WHERE  `siteID`=\"%s\"",
                            GetSQLValueString($_POST['aboutyn'], "text"),
                            GetSQLValueString($_POST['abouth1'], "text"),
                            GetSQLValueString($_POST['aboutp1'], "text"),
                            GetSQLValueString($_POST['aboutp2'], "text"),
                            GetSQLValueString($_POST['aboutp2img'], "int"),
                            GetSQLValueString($_POST['aboutp3'], "text"),
                            GetSQLValueString($_POST['aboutp3img'], "int"),
                            GetSQLValueString($_POST['aboutp4'], "text"),
                            GetSQLValueString($_POST['aboutp4img'], "int"),
                            GetSQLValueString($_POST['siteID'], "int"));
    [email protected]

    Dreamweaver will not produce such a mess when using column names which comply with the MySQL Naming Conventions and don´t contain (often quite problematic) hyphen characters.
    That said, you´ll be on the safe side when renaming your columns by using underscores instead, example:
    about_p3_img
    Several other web developers have told me that they entirely abandoned DW CS* series and moved on to other IDE's rather than try to fix the problem.
    Dreamweaver is certainly not a "perfect" PHP development IDE, but other IDEs (I use Komodo or Aptana at times and like them a lot...) aren´t perfect either. This may seem strange, but IMO Dreamweaver did do the - sort of - right thing by not letting the user get away with using such problematic characters, and that´s what those other IDEs I work with regretfully don´t pay attention to.

  • PP CS4 won't relink offline media

    Can anyone help me trouble shoot my Premiere Pro CS4? It would refuse to let me save anything, freeze and make me force quit it over and over, finally it told me to reinstall. So i did but now none of my previous timelines work, the media is all either offline or just not playing when i try to playback. When i try to relink the offline media it tells me the file dimensions are too big. What can i do? This is a big project which needs to be completed urgently and i don't want to have to start over losing weeks of work.
    I'm using a macbook pro and an education version of the adobe masters collection.

    Hi all, thanks for your help but neither of those solutions are working. I have found an autosave in which most of the media is still linked but not all of them and I am still being told that the file dimensions are too large to link, despite being from tapes i captured using premiere pro. While all clips are in the same place as where i edited them, the ones that appear to still be linked are blank and will not play.
    Date: Sun, 29 Jan 2012 10:00:12 -0700
    From: [email protected]
    To: [email protected]
    Subject: PP CS4 won't relink offline media
        Re: PP CS4 won't relink offline media
        created by Bill Hunt in Premiere Pro CS4 & Earlier - View the full discussion
    Jeff covers two of the biggest reasons that Media is Offline, and why one might not be able to relink to the media. This ARTICLE goes into detail on a few other reasons. The biggest question, and also at least part of the solution, is "why is the media offline?" One of the main causes is that something changed in the Path to the media, which is absolute. Then, when PrPro cannot find that media, it asks "Where is file ____ ?" and the user chooses anything but the Finder to locate that media, then Saves the Project. All media with changed Paths will then show as Offline. However, manually relinking will correct that. In your case, you are failing in that relink operation, so Jeff's suggestions take on even greater importance. Still, by defining WHY the media is showing offline, might be useful in determining how to relink. Good luck, Hunt
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4172142#4172142
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4172142#4172142. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Premiere Pro CS4 & Earlier by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Why a simple php syntax checker extension doesn't exist yet for Dreamweaver CS4 ?

    Hello,
    my request is in the subject ;-)
    I remember a very useful extension in Golive CS8/9 that did exactly that :
    Duplicate from DW the currently edited php/html page to a temp file
    Send the temp file to the command line : "/path/to/php -l /path/to/temp/file"
    Display the command output ("syntax ok" or "error on line ##") directly INSIDE dreamweaver
    It required only that an apache/php package was installed on the developer's computer (using whater Xampp, or Wamp, etc.)
    Though you might say to me that I should use a PHP IDE wich is dedicated specifically to that goal, I wonder why a such extension does not exist... as it is a great time saver when rapid syntax checking is required before uploading...
    I may be wrong but i can't find anything close to that via google / adobe studio exchange search results...
    Should I start to learn the dreamweaver CS4 API extension documention or someone can give me a hint to achieve that ?
    Thanks everyone.

    Hi M.Zografski
    I have tried to clear that cache the only thing I keep running into is that the file that is listed doesn't even match the way my dreamweaver loaded onto my computer. I get up to the point of the Adobe file then my next one is shown as Adobe Dreamweaver CS4- I choose this and then there is no file in there showing the language at all. I have a file listed as %AppData% and if I choose this one then it shows Thinstall file and this opens into Adobe AIR- then this has some registry files and another fold as %drive_C% which opens to Adobe then to Dreamweaver then to en_US then Configuration which does contain a file RDSINFO and it appears to be empty. This seems very round about to getting to the cache file and I was unsure of whether or not this was what I was indeed looking for.  Also if I try to search for this WinFileCache with that file name I get no results.
    Why is this being so stubborn. I am thinking if I could locate the file then it would all go well
    Thanks
    Teresa

  • DW CS4 Custom Tags & Syntax Highlighting?

    Hi,
    I already created a custom tag in the \Adobe Dreamweaver CS4\configuration\ThirdPartyTags\Tags.xml like this:
    <tagspec tag_name="mytag" tag_type="nonempty" render_contents="true" content_model="marker_model" start_string="(~" end_string="~)" detect_in_attribute="true" parse_attributes="false" icon="mytag.gif" icon_width="16" icon_height="15"></tagspec>
    I read the instructions on 3rd party syntax highlighting here (Dreamweaver Help).
    Whether I misunderstand something or it's not working.
    1) The help speaks of "View > Invisible Elements". In DW CS4 is no menu entry like this - if you mean the menu. However I think this entry is ment: "View > Visueal Aids > Invisible Elements". It's enabled by default.
    2) Under "Edit > Preferences > Highlighting" I activated the Third Party tags color.
    I restarted Dreamweaver to be sure...but no code/tag is highlighted!
    Example HTML: (.html file)
    <!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>
         <title>Test</title>
    </head>
    <body>
    <input name="(~ TEST ~)" type="text" class=(~ test2 ~) />
    (~Something here ~) This is the first text.
    (~ Partly Input  <input name="dynamic"|VAR ~)
    </body>
    </html>
    From my understanding, everything between the (~ ~) tags/delimiter (including them) should be colored in the 3rd party tag color or not? Also the  open INPUT tag with the name "dynamic" confuses the normal HTML syntax highlighting of DW.  I thought everything between my custom tags is kind of separated from the rest of the code? (the validator doesn't care either what's inside the custom tags).
    Any ideas?
    Cheers!

    I thought everything between my custom tags is kind of separated from the rest of the code? (the validator doesn't care either what's inside the custom tags).
    But it still goes looking for its own tags, which in your case simply isn't closed, hence the confusion.
    I restarted Dreamweaver to be sure...but no code/tag is highlighted!
    Are you sure the checkbox is ticked?
    Mylenium

  • Cs4 + swfObject = syntax error *sometimes*

    With CS4, on some sites I get a syntax error notice, always
    pointing to the line following the javascript for a swfObject
    insertion. But it only happens on some pages, not all. I have
    compared dtd's, css, and anything else I can think of that might be
    different, with no success in determining what is causing this. The
    page renders fine, but the yellow warning bar is a real annoyance,
    and I'd like to cure it?
    jimbo

    You are getting this syntax error IN CS4, right?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Jimbo7777" <[email protected]> wrote in
    message
    news:gdq4nv$5t5$[email protected]..
    > This page does not create the yellow bar syntax error
    message:
    >
    http://fordhammarket.com/index.html
    >
    > This page does create the yellow bar syntax error
    message, and it always
    > points to the line AFTER the swfObject javascript
    insert, even if that
    > line is
    > empty:
    >
    >
    http://donaldkallenforpresident.com/index.html
    >
    > screen shot:
    >
    http://jimbo.us/lab/syntaxError.jpg
    >
    > thanks,
    > jimbo
    >

  • Relinking to other filepath in Indesing CS4

    I have a javascript in CS3 that remaps the linkfile-path from a windows fileserver to an OSX file server.
    but that script will not work in CS4, link.filePath return an empty string if the image is unavailable in CS4
    <  snippet>
    for (i = myImages.length-1; i >= 0 ; i--) {
    var myImage = myImages[i].itemLink
    alert(myImage.filePath);
    < end snippet >
    does anyone known a sollution how to read the filePath

    Similar issues were discussed a few times on this and ID forums --  last time in this tread.
    I suggest the following options:
    Modify the attached script to your needs.
    Use Relink to Folder feature
    Use Update path names in links script.
    However, you say that link.filePath returns an empty string for missing links. I remember that one guy on this forum had a problem like this —  the reason was that the files were converted from Quark by some plug-in — it seems Q2ID its name — and were corrupted: if memory serves me right, link.filePath was empty string, but link.name contained what should have been link.filePath.
    I solved it by modifying the script attached
    Kasyan

  • Batch relink images in InDesign CS4

    Hi all your InDesign wizkids.
    I have a document with 800 image links that all have changed location and filename.
    all instances have a product number as filename. They have now been changed.
    so filename was eg. changed from --> to:
    123456.tif  -->  1203456.tif
    112233GB.tif  --> 1102233GB.tif
    79657.tif     -->     790657.tif
    13657NHZ.tif -->     130657NHZ.tif
    The only change is that there have been added a 0 as third digit.
    Also it would be cool to update path in same action to some/new/folder/to/file
    It would be a major help if any one could solve this.
    Best regards
    Alexander

    Thanks a lot.. it looks really good, but doesn't seem to work..
    The ExtendScript toolkit just keeps running (15 min) on a test doc i made with 20 links.
    What is wrong?
    Was it possible to make script without relink, so i just do that from the linkspalette??
    Here is script:
    newPath = "smb://sql-srv/marketing$/Marketing/TOOLBOX/Pictures/PACKSHOTS/Charms/TIFF CMYK/"
    myLinks = app.activeDocument.links
    for (i = 0; i < myLinks.length; i++){
         var oldName = myLinks[i].name;
         var newName = oldName.slice(0,2) + "0" + oldName.slice(2);
         myLinks[i].relink(newPath+newName)

  • How to relink bridge to Photoshop CS4

    Hey thrill seekers!  I took a look at Photoshop CS5 extended.  Not for me, so I uninstalled the trial software.  Now whenever I double click a file in Bridge, it tells me it can't find cs5.  How do I get the thing back to working?

    Thanks!   I went to there and saw that everything I'd expect photoshop to open had Photoshop as the default application.  Then It dawned on me to click it anyhow.  It looks like installing the trial had changed all of them to Adobe Photoshop CS5, and now that it's gone, it's all depressed and is just whining for Photoshop without purpose or direction.  So sad.  So I'm going to all the associations that list a generic Photoshop and pointing them to Adobe Photoshop CS4 one at a time.  DOH
    Thanks for the input.  I would have foundered forever.

Maybe you are looking for

  • How do I set a preference for opening one of multiple email accounts first?

    I have multiple email accounts and prefer to open one of them first when I open the email app.  After setup of all my email accounts the app is opening one of the accounts that is not my preference even though I setup my preferred account as the defa

  • LR 2 - special character in caption field

    I'm using LR 2.6 and a custom template to generate a flash gallery. The problem is my language which is Norwegian and contains characters like æøå and these behave strange when creating a web gallery. In the library the caption field looks ok, but wh

  • XI - Closing request for each new coming file

    Hi all, I will receive files from XI system to BW (csv files). I have a scenario like this; each new file that has been received by Bw system (pushed by XI) has to be exactly one request in PSA. That means one file will be one request in PSA. There s

  • Converting documents to JPEGs for bluetooth printing

    When I use Preview to convert a PDF to a JPEG, it drastically shrinks the size of the text in the document. Is there any way to convert my Word documents to a JPEG without changing the size of the print? These Epson bluetooth adapters are extremely l

  • Usage of ES_FOLDER_API

    Hello everyone, I have a very simple question: how to properly use ES_FOLDER_API.SET_FOLDER_EXPIRY() ? This is how i use it and it does not work (i am logged as the ES_MAIL user): select folder_id,DAYS_KEPT from es_folder where upper(folder_name) lik