Is there an updatedcrossrefs script for InDesign CS6

Running Mac Pro/2.66 GHz—Quad-Core Intel Xeon/Snow Leopard/
OS/Mac OS X Version 10.6.2/2.66 GHz
I converted a CS3 InDesign that uses the script "updatedcrossrefs.js", to CS6 InDesign. This file uses hyperlinks on the TOC and Index.
I tried using the same script for CS3 InDesign in CS6 InDesign but it does not work.
This is the error message "Could not catch page. Check destination names and existence."
Is there an updated script for CS6?

Sorry did not know I was using bold. My co-worker found this script however, she does not work here anymore. But here is the script. I know nothing about scripts except how to use them. Sorry.
// Updatecrossrefs.js
// Updates cross references made with hyperlinks
// the hyperlink destination is where the reference refers to
// the hyperlink sourcetext is the text that will be updated (like see xx)
// If a book is open, the book will be handled,
// if no book is open, the active document will be handled.
// Made by Teus de Jong, last version April 10, 2006
// Revisions by Dave Saunders January 22, 2006 and March 20, 2006
// Thanks Dave!
// Added unique naming mechanism for sources -- October, 2008
if (app.books.length == 0){
          if (app.documents.length == 0){
                    errorExit('No documents are open');
          } else {
                    nrofdocs = 1;
                    doc = app.activeDocument;
} else {
          nrofdocs = app.books[0].bookContents.length;
          for (i = nrofdocs - 1; i > -1; i--) {
                    if (app.books[0].bookContents[i].status != BookContentStatus.documentIsOpen)
                              app.open(File(app.books[0].bookContents[i].fullName));
          doc = app.open(app.books[0].bookContents[0].fullName);
for (d = 1; d <= nrofdocs; d++){
          for (i = 0; i < doc.hyperlinks.length; i++){
                    hyper = doc.hyperlinks[i];
                      // leave ID's own internal markers alone
                    if (hyper.name.substring(0, 1) == '.'){continue}
                      // leave hyperlinks to URLs alone
                      try {
                              if (hyper.destination.constructor.name == 'HyperlinkURLDestination'){continue}
                    } catch (e) {
                              hyper.showSource();
                              errorExit('Selected hyperlink has undefined destination');
                    s = hyper.source.name;
                    // added October, 2008
                    // sometimes ID's unique name mechanism for sources fails; make sure the source has
                    // the same name as the hyperlink + '_src'
                    if (s != hyper.name + '_src')
                              hyper.source.name = hyper.name + '_src';
                    if (hyper.destination.constructor.name == 'HyperlinkTextDestination'){
                              s = getParentPageName(hyper.destination.destinationText);
                     } else {
                               // try/catch added to allow for hyperlinks that have lost their destination -- Dave
                               try {
                                          s = hyper.destination.destinationPage.name;
                                } catch (e) { continue }
                    if (s != ''){
                              // Check to see if update needed; saves a lot of time when processing large books -- Dave
                              if (hyper.source.sourceText.contents != s) {
                                        hyper.source.sourceText.contents = s;
          if (d >= nrofdocs){
                    break;
          doc = app.open(app.books[0].bookContents[d].fullName);
function getParentPageName(txt){
          try { 
                    var myFrame = getParentTextFrame(txt);
                    var pag = myFrame.parent;
                    while (pag.constructor.name != 'Page'){
                              // in case the reference is in an inline, the parent of the frame is a character
                              if (pag.constructor.name == 'Character'){
                                        pag = getParentTextFrame(pag);
                              // in case the chain goes sour, back out
                              if (pag.constructor.name == 'Application'){
                                        throw 'Error';
                              pag = pag.parent;
                    return(pag.name);
          catch (e) {
                    alert('Could not catch page.\nCheck destination names and existence.');
                    return('');
function getParentTextFrame(x){
          if(app.version == 3){
                    return(x.parentTextFrame);
          else {
                    return(x.parentTextFrames[0]);
function errorExit(s){
          alert(s);
          exit();

Similar Messages

  • Script for InDesign CS6 - create multiple, prenamed layers

    I created a script for Illustrator CS6, in ExtendScript Toolkit, that will create multiple, prenamed layers...see below...
    //Apply to myDoc the active document
    var layerName = LayerOrderType;
    var myDoc = app.activeDocument;
    //define first character and how many layers do you need
    var layerName
    var numberOfLayers=0;
    //Create the layers
    for(var i=0; i<=numberOfLayers; i++)
    { var layerName = ":: GRADIENT";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = ":: STRIPES";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = ":: LEGAL";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = ":: BLK BAR";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = ":: FLAME";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = ":: LOGO/TYPE";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = ":: TRIM,ETC";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    { var layerName = ":: LOEC INFO";  var myLayer = myDoc.layers.add(); myLayer.name = layerName;  }
    // Moves the bottom layer to become the topmost layer
    if (documents.length > 0) {
    countOfLayers = activeDocument.layers.length;
    if (countOfLayers > 1) {
    bottomLayer = activeDocument.layers[countOfLayers-1];
    bottomLayer.zOrder(ZOrderMethod.BRINGTOFRONT);
    else {
    alert("The active document only has only 1 layer")
    I tried to use this exact code to replicate the same scenario in InDesign but it doesn't work.
    Can anybody help me out!?
    Thanks in advance

    Marijan Tompa's scripts are very nice and useful, however, for this simple task you can try create your own wiht this code:
    app.activeDocument.layers.add ({name: "GRADIENT", layerColor: UIColors.red});
    app.activeDocument.layers.add ({name: "STRIPES", layerColor: UIColors.lightBlue});
    app.activeDocument.layers.add ({name: "LEGAL", layerColor: UIColors.gray});
    //merge existing document layer to bottom layer (in this case original layer will be merged to 'GRADIENT')
    var myDocument = app.documents.item(0);
    var myLayerA = myDocument.layers.item(2);
              var myLayerB = myDocument.layers.item(3);
              myLayerA.merge(myLayerB);
    alert("Layers created!");
    assume, your document has one layer.
    Script creates three new layers, they appear in Scripts palette in this order:
    LEGAL
    STRIPES
    GRADIENT
    and merges 'old' layer to bottom layer of newly created set (GRADIENT).
    sure, you can add as much layers as you need, just don't forget modify LayerA and LayerB numbers accordingly.
    Or disable second part of the script at all, if you don't want anything to be merged.

  • Script for Indesign CS6 - Export Document to preset PDF

    Does anyone know how to do this please?

    Do what? You can't export a document to a preset. You can use a preset to export a document, is that what you mean?
    Check the ESTK object model under Document. Look at the exportFile() method.
    Dave

  • Is there a plug-in for Indesign Interactive PDF buttons which simulates the same control as Acrobat?

    I want to know if there is a third party out there making plug-ins for Indesign CS6 specifically for interactive PDF buttons and forms which allows for better control over text boxes.... ie. date formatting, 1-10 characters per text boxes, etc.

    Not that I've heard of. You'll have to tweak those features in Acrobat Pro.

  • ADOBE DPS tutorial downloads - are there any for indesign CS6?

    ADOBE DPS tutorial downloads - are there any for indesign CS6?
    I am in need of tutorial downloads for indesign to learn more on Adobe DPS. I see the many videos online - but would love to download files and construct the files I see. Can anyone help and advise please.
    thanks: Daryl

    If you want good quality exercise files get a subscription to Lynda.com.
    This link will get you a one week trial to see if it's good for you. You'll
    have to pay for the subscription to get the files: http://bit.ly/RS0GXs

  • Hi is there a TextCleanup script for Indeisgn CC?

    I am looking for a TextCleanup Script for Indesign CC, any help would be greatly appreciated.

    There are tons of scripts to do this.
    For example,
    http://www.kahrel.plus.com/indesign/clean_space.htmlhttp://
    Remove spurious space | Peter Kahrel
    You may look in the web:

  • DPS Tools Version 31.0.1 for Indesign CS6 fail to install.

    I'm trying to install DPS Tools Version 31.0.1 for Indesign CS6 however the installer says the update is not applicable. How can I install it?

    Not sure if this was solved for you, but this is what I did...
    In terminal...
    cd /Library/Application Support/Adobe/AAMUpdaterInventory/1.0/
    In there you'll see a file called: "AdobeUpdaterAdminPrefs.dat"
    You may need to change the permissions...
    sudo chmod 666 AdobeUpdaterAdminPrefs.dat
    [ENTER YOUR PASSWORD WHEN PROMTED]
    then ...
    vim AdobeUpdaterAdminPrefs.dat and change the 1 to 0 between the word suppressed, like this...
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Preferences>
        <Suppressed>0</Suppressed>
    Then kill all adobe software, relaunch photoshop and go to Help>Update. Shouldn't greyed about anymore.
    Does this help?

  • InCopyImport.InDesignPlugIn for Indesign CS6

    Is it possible to obtain a fresh copy of the InCopyImport.InDesignPlugIn for Indesign CS6? I have installed Creative Suite CS6 on a fresh iMac 10.8.5 build, and I receive this error when opening Indesign CS6 only. All other applications run fine. AT first I had an issue with 6 or 7 plug-ins, but upon closing and reopening, I am down to just the one error.
    Adobe Indesign does not recognize InCopyImport.InDesignPlugIn as a valid plug-in. Please reinstall the InCopyImport.InDesignPlugIn plug-in and restart Indesign.

    I have both InDesign CS6and InDesign CC 2014 on my computer. The foundation of both is the same. Even the tutorials are identical. So how you can say that CC was built from the ground up is preposterous.
    Without getting into an argument with you. I will explain my frustration more clearly.
    1/ I paid an extortionate amount of money for InDesign CS6 and have been very happy with the results
    2/ It appears that Adobe and you want me to forget the amount of money that I have already invested, bin the old software and buy a subscription to a new more powerful program that was built on the same design. I will receive a meagre discount for the first year and then be charged in the region of £50.00 per month there after. That works out at £600 per calendar year. And a cost that will have to be passed on to my customers
    3/ On other Adobe products they offer an add on for updates. So why can't they offer an add on for the Fixed and reflowable layouts.
    4/ As mentioned in an earlier conversation. I am impressed with the software and will more than likely have to subscribe to CC 2014.
    So lets end this conversation here in the knowledge that I will be buying a subscription .

  • Is there an availability script for dreamweaver?

    Hi for my site i like to build an avalabilty page. Its a Site where you can rent a house.
    I have something like this in mind:
    http://www.vakantievillamydream.com/en/availability.html
    I hope its possible?
    Regards Brian

    thank you snake eyez,
    I found one. But the problem ive got now is confusing. I see a lot of text and i dont know why that is.
    Hope you can help
    http://www.hureninparamaribo.nl/contact.htm
    regards Brian
    Date: Thu, 17 May 2012 09:46:45 -0600
    From: [email protected]
    To: [email protected]
    Subject: Is there an availability script for dreamweaver?
        Re: Is there an availability script for dreamweaver?
        created by SnakEyez02 in Dreamweaver - View the full discussion
    It's possible as long as you know how to program.  DW has nothing built in to make these.  If you don't have the knowledge I would recommend outsourcing it or going to a place like Hotscripts.com and look for one in your server language.  None really come to mind or jump out at me, but many are free or have free trials so that you can see what works best for you.
         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/4416249#4416249
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4416249#4416249. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver 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.

  • Is there anything like AlienSkin for Fireworks CS6?

    Is there anything like AlienSkin for Fireworks CS6? I realize there is Fireworks Exchange, but I've found it to be a bit disappointing. In older versions of FW I used a couple AlienSkin products for lightning, fire, chrome, etc effects. Don't care if I have to pay for it or not. I called Adobe support line and they were less than helpful, and after asking a couple questions the lady couldn't answer the call was magically dropped. I'm probably just being dumb and missing something obvious here, but any guidance or feedback would be greatly appreciated.

    Why not download the trial versions to see if they work for you, and whether or not you like them?
    https://app.alienskin.com/downloads/

  • Is there a full view for audition cs6?

    Hi
    is there a full view for audiotion cs6 ? like lightroom 4 or photoshop cs6 , in short i can work with audition in full view
    thanks

    hi thanks
    i don't have a english keyboard but an italian and i haven't the tilde key
    but i installed the english version to follow tutorials
    can i remap the keyboard shortcut?
    i mean the The tilde key ~

  • Adobe Content Viewer for Indesign CS6

    Adobe Content Viewer for Indesign CS6  has disappeared from my application folder, and after downloading AdobeDigitalPublishingCS6 and reinstalling the Content Viewer it still will not launch.
    I have the necessary files and the instller says it was installed successfully…
    Thanks,
    J

    Try following the steps at http://helpx.adobe.com/digital-publishing-suite/kb/manual-install-content-viewer.html.
    Neil

  • Hi how/where do I upgrade plug-ins for InDesign CS6 6.0.6?

    Hi how/where do I upgrade plug-ins for InDesign CS6 6.0.6?

    6.0.6 is CS4, not CS6 (which is version 8).
    Why do you need to upgrade plugins? Are you getting an error  message trying to pen a file? That meas the file was saved from a newer version of ID, and you'll need either the newer version, or an IDML file exported from the original. You can't upgrade plugins to make this work.

  • Downloading a trial for InDesign cs6

    I need to update InDesign CS6 files but only have InDesign CS5.5.
    Cannot download the trial for Creative Suite because I have an older version of system software (10.6.8).
    How do I download a trial version for InDesign CS6?

    Spercomj you can download InDesign CS6 from Download CS6 products.

  • How Can I write Script for Indesign set left indent

    I really need two scripts for indesign set left indent:
    1. If the left indent is: 8, 16, 24, 32, 40, 48, 56mm... set the first -8mm; if the left indent is 0, set the left indent 8mm, first -8mm.
    2. Whatever the first indent is, set the first 8mm.
    Can someone help me?

    Hi, Trevor
    I use change by list as below:
    grep {leftIndent:48mm} {leftIndent:56mm}
    grep {leftIndent:40mm} {leftIndent:48mm}
    grep {leftIndent:32mm} {leftIndent:40mm}
    grep {leftIndent:24mm} {leftIndent:32mm}
    grep {leftIndent:16mm} {leftIndent:24mm}
    grep {leftIndent:8mm} {leftIndent:16mm}
    grep {firstLineIndent:8mm, leftIndent:48mm} {firstLineIndent:8mm, leftIndent:56mm}
    grep {firstLineIndent:8mm, leftIndent:32mm} {firstLineIndent:8mm, leftIndent:48mm}
    grep {firstLineIndent:8mm, leftIndent:24mm} {firstLineIndent:8mm, leftIndent:32mm}
    grep {firstLineIndent:8mm, leftIndent:16mm} {firstLineIndent:8mm, leftIndent:24mm}
    grep {firstLineIndent:8mm, leftIndent:8mm} {firstLineIndent:8mm, leftIndent:16mm}
    grep {firstLineIndent:-8mm, leftIndent:48mm} {firstLineIndent:-8mm, leftIndent:56mm}
    grep {firstLineIndent:-8mm, leftIndent:32mm} {firstLineIndent:-8mm, leftIndent:48mm}
    grep {firstLineIndent:-8mm, leftIndent:24mm} {firstLineIndent:-8mm, leftIndent:32mm}
    grep {firstLineIndent:-8mm, leftIndent:16mm} {firstLineIndent:-8mm, leftIndent:24mm}
    grep {firstLineIndent:-8mm, leftIndent:8mm} {firstLineIndent:-8mm, leftIndent:16mm}
    but not that perfect,
    I want to useing jave "if{}" or "for{}" to write this script, but I don't kown the syntext.

Maybe you are looking for

  • Photos keep appearing the wrong way round in slideshow!

    Photos which I imported from my old macbook (running 10.4) onto my new imac (10.5.8) keep appearing the wrong way round or stretched out when I play them as part of a slideshow even though in the library they appear fine. Can anyone tell me how to fi

  • New to i-Tunes

    As an ageing non-techno who is venturing slowly into the 21st Century, I require, please, some idiot-proof help and advice! I have just downloaded iTunes and an unclear exactly what or what not I can do, despite the Tutorials. Ideally, I would like t

  • Submit webform content to external database through webservices

    Hi 2 all, we need to achieve the following : - create a webform where user insert his main details (name, company, email etc.) - in the webform there is a script that generates two random number to be used as username and password - all data of the w

  • Is canon EF 24-85mm F3.5-4.5 lens is compatible with canon eos 6D ?

    Is canon EF 24-85mm F3.5-4.5 lens is compatible with canon eos 6D ? is it work fully automatic ?

  • Firmware for n70 up to date but it's not

    Hi can somebody help me. am with 3 network, ive been to nika repair center's for new frimware update for my phone N70 but no luck as 3network dont provide that up date only update they is which is v2.0539.1.2. ive download the nokia updater but it sa