Relink book file

Hi scripters
Here I am updating book file.contents from one folder to another folder. Below is my code I used to update the book file. While I am executing this script It's processing for sometime and finally closes the Indesign application.
var new_folder = Folder.selectDialog("Please select a folder");
bb = app.books[0].bookContents;
for (i = 0; i < bb.length; i++)
chname= File(bb[i].fullName).name;
mynewfile = File(new_folder + "/" + chname);
if (mynewfile.exists) {
bb[i].replace (File (mynewfile));
The error shown below
Adobe InDesign
Adobe InDesign is shutting down. A serious error was detected. Please restart InDesign to recover work in any unsaved InDesign documents.
OK
Please advice me where I am mistaken?
thanks in advance
regards
a r u l
vpublish.net

Hallo Ebrebc,
Thanks for your reply but that is not exactly what I mean.
What I mean is if you can relink your images in several Indesign-files at the same time?
I have made a book-file of 50 separate Indesign-files in which I have to relink all images.
Now I have to open each file to relink the images, but is there a way you can do that with several Indesign-files?
Thanks!

Similar Messages

  • How do I auto-relink renamed files?

    Hello everyone, thank you all in advance for helping me with this situation.
    I have experience in running scripts for InDesign, however I have no experience writing scripts, and ultimately I will need something that is also versitile enough to work in CS 3,4, & 5.
    I work for a book publisher, and we changed our file naming convention for all files (new and old). We intentionally rename EVERY file with the Renamer for Mac program prior to opening up the InDesign file - and manually relink every file to the newly named file. I would like to be able to write a script that automatically determines the files new name, and relinks them.
    Is this possible, and how would I do this?

    If there is an exact formula for determining the new name by only knowing the old name/path then sure it'd be possible. Just iterate over all links in the document, check whether they're broken, calculate the new name and relink. Without knowing the renaming formula though there's no way to give you an exact script.

  • Unable to delete Address Book File

    I am unable to delete nor copy over an Address Book file that I have on an external HD connected via Airport Extreme. When I connect the HD directly to my Macbook Pro, I am able to delete the file - but not via Airport Extreme. When I attempt to delete the file, I get a message from Trash as follows: The operation cannot be completed because the item "Metadata" is in use. Same message when I attempt to replace the file with a new file. In other words, I am unable to use AE to transfer my Address Book file to my external HD, unless I change the name of the file. What is going on here?

    Hello Bob.
    You may be having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not coming from one of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] and select ''Disable all add-ons''. If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme. You can troubleshoot plugins the same way.
    If you want support for one of your add-ons, you'll need to contact its author.

  • Page numbers from deleted book file persist in document

    I have 4 documents that I needed to merge so I attempted to put them in a book file (which I am not at all familiar with how to use). I removed the documents from the book file because it was not doing what I needed it to do, but the auto section page numbers are persisting in the individual documents and I cannot get rid of them. For example I have page numbering starting on page 5, but pages 1-4 have page numbers 5-8 on them and I cannot get rid of them. (I can do this manually of course but would like to know why they are persisting)

    Do you mean the numbers physically appear on the pages and you don't want them there (if so, delete them from the master page(s)) or do you mean the numbering scheme is wrong (if so, check your section and numbering options)?

  • I need help with the numbering pages in a book file

    I have a 53 chapter book that which each chapter is its own document. It used to work great. The page numbers of each document used to continue from the last page number of the previous document. That was until today when I opened it and all the page numbers now start at one. I don't know what to do. I have checked all of the options I knew to check. Each document still has the 'automatic page numbering' option selected. I truly don't want to have to go through and manully renumber every document. It will take time I do not have. If I can get somebody's help, it would be wonderful.

    Nor do I. It sounds like everything is set correctly. You might want to try creating a new Book file and add the individaul documents into it and see if that fixes things. Also, have you tried updating the numberingfrom the menu since this started?

  • How do I maintain bookmarks in multiple documents when exporting a book file to PDF?

    I am using a book file to organize 10 individual indesign documents. Each document has its own set of bookmarks and links, and their are links that go to other documents within the book as well. How do I (using CS3) print my book file to PDF while maintaining all the interactive components? I want my complete list of bookmarks to appear within the bookmark pane, and I want all of the interactive links in the document to work when they are clicked in the PDF. Doing this for one document is simple, set the preferences to enable the bookmarks and links. However, none of these PDF export settings seem to work when printing the entire book.
    Help!

    I had it open, just wasn't looking in the right spot. Found it... thanks a bundle. This has made my day... as long as the bookmarks work when I export.
    Thanks!

  • A book file in InDesign CS3 (.indb) - Mac and PC - crashing issue

    Several months ago, I posted that when I indexed a 300-page book with lots of chapter, generating the index crashed InDesign. This happened initially on a PC running Windows XP home. When I took the book to a Macintosh, it happened also.
    One thing I had done, and I don't know if this makes a difference, is changed words that already had index tags attached to them.
    It has been several months since I've tried this - I've been waiting until this book was completely written before trying again. 
    Since this happened, I've also tried to synchronize styles and that also crashed InDesign. Before the index 'broke', both generating the index and synchronizing styles worked like perfectly - amazing functions of InDesign and makes working with a book much easier.
    Now the book is ready. I stripped all of the index codes from the entire book using search and replace, and then the first time I tried to open the Index window, it crashed again.
    When it recovered, there was a message that 5 of my 24 documents in this book may be damaged.
    So I tried opening the indb file, opening the Indexing window, THEN opening the book files and it crashed. I was able to get the error message this time: An exception unkown software exception (0xc000000d) ocurred in the application at location 0x78138aa0. Click OK to terminate the program.
    When InDesign came back up, I closed the Index window and was able to open all of the book's files with no problem.
    My questions are:
    1 - Is there any way to find out where/how those files are damaged?
    2 - Does anyone know what may cause an Index generation or style synchronization to crash InDesign - and then not fix the problem?
    3 - Could this be something other than the index, and how do I figure out what it might be?
    This book is now 374 pages in 24 documents, and I don't think there is a way to go backwards in the InDesign process at this point.
    I'm not sure how clear I'm being with all of this, but the book is to go to the printer Monday and I can't index it.
    I'd appreciate any help I can get.
    Thanks so much,
    Marcy

    Just to add to Eugene's recommendation. Q2ID is worth every last dime of the $200 it cost.
    I just upgraded to the latest version when I received 25 Quark files to convert for an iPad app. Even for early Quark files that InDesign can open, it does a better job.
    BTW, it's also worth noting here that Adobe cannot legally have InDesign open anything later than Quark 4.x files due to the encryption used in Quark 5 and later files. Quark is too dependent on Markzware for XTensions to go after them.
    Bob

  • How can I relink event files?

    I am on the job of 'managing my video works'...trying to get the events and projects in order. In this matter I have been coming across 'problems' which I have been able to surmount. But in the present case I seem to have come to the 'end of the road' and would like to know how to proceed.
    The event of one particular problem is showing an alert icon as the one shown in the HELP pages of FCPX:
    When I tried to relink the files, I got this pop up stating that files were incompatible and asked to click on a single file to know the reason of incompatiblity:
    Upon selecting a single missing file, I found that there was this problem:
    The project appears normal in the project library and the timeline as well. The project properties in the inspector window also seem to be normal...no alerts of missing events. Playback also is normal. The project in the project library sports no alert icon. I did a 'relink project files' and was able to do so. When I clicked upon reorganize project media, I was informed that all the media are right on the spot [location].
    I finally also clicked reorganize event files and got this feedback:
    May I be informed how I can get rid of this alert icon? What are the dangers, if any, if the alert icon cannot be removed? Can I ignore this alert?
    Thanks in advance.

    An update for what it is worth!
    The alert icon got removed in this fashion:
    I had upgraded to version 8 of FCPX recently and instead of updating all the events and projects in a drive at once, I had, as a precautionary measure, used event manager to 'feed' and update with only one project and its associated event/s at a time. When I clicked all the prjects and events of the drive in question, the alert icon disappeared.
    However, I am still getting this, what Tom has opined, a display problem, even in some events and not merely projects:
    Well, if this is indeed a 'display problem' need I to call up the service center or do I accept it with an air of resignation? FYI this appearance of clips and projects are not for all projects and events I have but only for some of them.

  • Error message when compiling book "file is corrupt" referring to a photo.  Or "cannot find original photo".  Can you use photos that have been "edited" out of "Book Mode"?

    Error message when compiling book "file is corrupt" referring to a photo.  Or "cannot find original photo".  Can you use photos that have been "edited" out of "Book Mode"?

    I did copy it to my desktop, but it still won't let me open it.  I think the file on the disc might be corrupt or something like that though the cd itself checks out fine as far as viruses go.  I was able to verify the disc, but that's about it.  My husband tried it on his iMac and we have the same issue.  It's unzipping the folder, but won't let us open the folder on both the Mac Book Pro or the iMac by double clicking, going to file/open or right clicking.  It just keeps saying the same message as I posted above.  I think I'm just going to have the client put the pictures on either a memory card or a USB memory stick so she won't have to compress the files for zipping purposes.  It's been too frustrating trying to open this folder on this cd she gave me.  She said she created/zipped the cd on her Mac Book Pro but it sure won't open on mine.

  • How can I auto-update all book file links after making a new copy of my project?

    Using Indesign CC 2014,
    Windows 7x64.
    I've created a catalog, using a book file (.indb) which connects 20 Indesign files (.indd) together (so page numbering is continuous, etc).
    Each of the 20 Indesign files all have numerous art asset links and cross references. In total, ~200 files are involved.
    Once finished with the whole thing, I made a copy of the entire folder structure and placed it elsewhere, because I now need to create a modified version of this catalog project for a different company.
    In the end I need to wind up with 2 different, but very similar catalogs.
    Here's my problem: when I made the copy of the entire project and opened the copied over book file, I've found that it's still referencing the older 20 Indesign files back in the first folder structure.
    It's not using the new stuff.
    Same goes for all the art asset links inside each Indesign file.
    Looks like absolute paths only.
    What's the standard operation procedure here? What can I do to avoid having to manually re-link numerous art assets, etc?
    Surely, this is a common need among Indesign users.

    Hey, Peter!
    I've delayed my response here.
    Been dinking around, trying things.
    That's a smart suggestion, but the Package command will round up all assets into a nice compact folder structure ready for production. It's not really what I need.
    I need to keep things as they are, fully editable and unaltered - my folder structure is carefully crafted as is, and I definitely don't need all the fonts dumped into a folder.
    Here's what I'm doing now - I make a complete new copy of the folder structure in question. It includes all InDesign files and linked artwork, etc. Everything.
    I then CHANGE the name of root folder of the folder structure I initially copied. This breaks all the absolute paths of the copy.
    Then I open each InDesign file and the CORRECT links are still automatically found because it looks inside the new folder structure I just made by creating the copy. So all links get "fixed".
    Thank goodness InDesign is far more intelligent about finding missing links than Illustrator.
    This is the best solution I've found. It's not perfect, but nothing ever is.

  • InDesign "Save As" dialog box for every operation in INDB book file; updating page numbers, etc.

    So I haven't used INDB files in awhile in InDesign, and today was the first time I attempted to adjust an old INDB (created originally with CS5).  For every operation of adjusting the book file, such as updating page/section number or adding/removing an INDD file I get a Save As dialog box for each constiuent INDD file.  This is quite annoying since the book has lots of INDDs, and I have to click through the tedious save as with each.  I previously worked with INDBs in CS5, and never encountered this, there was no need to save each INDD in the book just to update the page numbers.  I tried creating a new INDB in CS5.5 thinking that maybe it was because I was working from a file created with an older version of InDesign.  Does anyone know if there is a way to suppress the Save As dialog?  Another thing I noticed that is supremely frustrating is that this new build of InDesign doesn't default to saving the file in its original location, and I have unwittingly ended up saving files in other places, only to later realize it.  I am using InDesign CS5.5 Ver. 7.5.2 on Mac OSX 10.7.3  Any help is greatly appreciated. 

    It will only happen once (and frankly, what you are doing is a very bad idea).
    When you open the old book in CS5, you are converting to the new format. All of the legacy files also need to be converted, even if added to a new book in CS5.5, hence the Save As since ID will not overwrite the old versions until you tell it to (and that's the bad idea). I strongly recommend (though it's too late for any books you've already updated and overwritten) that you either continue to edit in the old version, or that you take the time to open each file in the original version if it's older than CS5, then export to interchange format (.inx or .idml, depending on version), open those files in CS5.5, save with new names so you don't overwrite anything, then add to a new book and proceed.
    One of the reasons I recommend this seemingly time-consuming approach is that there are too many reports (another one yesterday) of some sort of problem that pops up late in the editing cycle when converting legacy files to CS5/5.5 by opening them directly and saving. This is a belt and suspenders insurance approach, and is far less labor intensive than starting over, which might end up being your other option down the road if something goes wrong.

  • FM9 crashing when trying to open book file

    Help!!  FrameMaker crashes when I attempt to open certain book files.  I am using FrameMaker Version 9.0 p255 on Windows XP pc.  Other details:
    This problem began mid April about 5 weeks ago.  Some book files are just fine while others crash the system. The internal error codes listed with each crash have overlap but are not identical (they all have at least 9004).  The last one stated: “Internal Error 9004, 5242025, 5220528, 6335542.  FrameMaker has detected a serious problem and must quit…”
    Attempting to open individual .fm files within the crashing book file does NOT cause a crash.
    Tried opening it through windows explorer and directly through Frame with the same result. 
    Failed fixes attempted per forums.adobe.com:  rebooting, renaming the linguistics library, deleting linguistic library in case it was corrupted (C:\Documents and Settings\jchen\Application Data\Adobe\Linguistics\Dictionaries\FMUserDictionary\all), changing book file name, replacing book file with a backup copy of the book file, and recreating book file.  In the past, replacing book file with an archived copy worked but most of the time it did not work.  Sometimes recreating the book file worked, but not always.
    I believe I cannot do a MIF wash since I need to be able to OPEN the book file first in order to be able to save it as a MIF file??
    Tried to install Frame 9 updates from http://www.adobe.com/support/downloads/product.jsp?product=22&platform=Windows, but got an error message stating, “You do not have correct version of FM install on your system.  This patch installer will work only with Version 9 p196.  Patch installer will quit now.”
    I’ve emailed [email protected] (per crash message window) and have not received suggestions on how to fix.  L 
    On a side note, my MS Word 2007 is acting super buggy lately… where when I try to do basic things like performing a “Save As”, etc., the screen goes blank or partially blank and takes some time to recover. 
    Besides reinstalling FrameMaker 9, does anyone have any suggestions?  Hoping to reach the root of the problem as this issue keeps resurfacing in slightly different forms.
    Thanks.
    Judy

    Judy,
    The 9004 code just means that FM9 crashed. The subsequent numbers provide some clue to engineering as to where the fault was, but can't be deciphered by anyone else. If these seem to be all different values, then this may be an installation or machine issue.
    The p255 version means that you have all of the patches applied.
    The fmerror mailing address is just a one way street, where Adobe keeps track of issues and looks at trends. They will never reply via this channel. Also, since they've been at FM11 for almost a year now, odds are that single FM9 issues won't be flagged as high priority items by engineering - that's kind of why us users have to help each other out.
    Since the individual files open properly and your system doesn't crash, then the problem sounds like it's either in the .book files themselves or you may have a system resource issue (you mention flakiness in Word too).
    If you re-create a clean book file from scratch, does it immediately crash or when you open it again? You could try saving the book file as a MIF at that point and trry working from the MIF. Also does there seem to be any pattern as to when (i.e. after how many open/close cycles) a book file will start to crash after you have recreated it or used an old, archived one?
    Do you have another machine (coworkers?) with FM that you could test the files on? If they don't crash there, then odds are it's something specific with your machine.
    With regards to resources, do you have significant free space available in your system TEMP area? Have you defragmented your drives? How much memory does your system have? Do these crashes occur at any time or after you've been working on the machine (from a cold start) for a while?

  • Adobe Classroom in a book file won't open anymore

    I have a Framemaker 7 Classroom in a book file that won't open anymore. I purchased in in 2006
    and it's worked for years. There is no error message. I keep getting redirected to Adobe Digital Editions website. So I've installed the Adobe Digital Editions software and still no luck. I spent 2 hours on the phone this morning with Adobe support and their final conclusion is they don't support this issue.
    Anyone have any ideas? All my other pdf's open with out any trouble. Some of them are ancient.
    Thanks,
    June

    You may use the forum for Adobe Digital Editions.

  • Indesign Crashing with .indb Book file

    Hi,
    I'm having an issue with using the Book pallette crashing InDesign every time I try to edit it.
    I've found many people having crashing issues on Mac OSX and with exporting to PDF but can't seem to find an instance of crashes due to Book files.
    Basically every time I try to delete, move, add a page to the Book (.indb file), InDesign will pop up a dialogue "Updating page an section numbers" and update the docs within the Book. This works as it should until I add one of my Chapters (largest chapter at: 26, 884 KB). It then proceeds to crash after trying to udate the book every time I try to edit it.
    I'm wondering if there is a Book size restriction or a Chapter size restriction, as the only real difference this chapter has is size. All the Chapters together equate 108, 450 KB, which I would have thought InDesign could handle, which makes me doubt that file size is the issue.
    The whole Book is only 98 pages.

    I used the Remove minor corruption by exportingon my other .indd docs and it reduced the file size dramatically in some cases. The reason being, I was saving chapters from a single consolidated document (53,136 KB), by copying the document then deleting pages. While the file size was reduced each time it must have retained unessessary information when deleting pages. I assume the solution mentioned must clear whatever unused cache is in the document, resulting in the file size shrinking.
    Example:
    Largest chapter at: 26, 884 KB was reduced to 16,888 KB
    2nd largest chapter at 25, 356 KB was reduced to 2,988 KB

  • General Advice and Question on Saving Book Files

    I am still relatively new to FrameMaker. I attended a one on one course 12 months ago for two days. When I attended this course I was totally oblivious to the features of FM, it was totally foreign software. I had looked through the User Guide and as part of the course received Classroom in a Book. I have not spent a lot of time on FM in the last 12 months as I still have to produce manuals in the old format. The changeover is a huge project.
    I have searched this forum many times and found the answers I have needed to many of my questions and learnt so much that I had not fully understood.
    I would just like to confirm now with the users of this forum that I am going about my project in converting to FrameMaker in the right way and I have a question on saving books etc.
    I have Operator and Service manuals for four machines (with variations between each machine and then variations between each of those basic models). Parts of the Operator and Service manuals are interchangeable.
    I want to be able to single source my material and I am setting up an Excel spreadsheet which will breakdown each section of both manuals. Once completed when a machine is ordered the Excel spreadsheet will produce the details of the files needed to complete a book (manual). There will still be work needed on the book files before the manual can be produced.
    My files are double sided with each Chapter starting on the right hand page and I am using variables and conditional text. The manuals contain columns, graphics, tables etc.
    I have done test runs and have managed to accomplish the layout in PDF that I want for the final manuals which will be printed. I am only working on four machines at this stage, once this is set up others will be added or I may have to set up another lot of single source files.
    Am I on the right track?
    My specific question is that currently I use master files for each machine which are updated as needed. These files are then saved to another folder and identified by a Serial Number and Customer. The serialised files are then saved to PDF. I would like to continue this process as in the future the manuals for that specific machine may need to be revised (i.e. Rev. 0 to Rev. 1 and so on).
    So basically I have all my single source files from which I produce a book file and save it to an appropriate folder which identifies its Serial Number and Customer. I don’t know if I have missed something very simple but I want these serialised books to remain as is, I do not want them updated when I make a change to my single source documents. I want to be able to produce my manuals for any number of machines from my single source without changing the book files that have already produced a manual. Is this possible?
    I am using FrameMaker 7.2 b144.
    I hope this posting provides a clear view of what I am trying to achieve.
    Many thanks in advance for any advice and answers that are provided.
    PS This is the first time I have ever posted to any forums.

    It sounds like you want to be able to open the book files and print without updating...
    This isn't the case. Each book will need to be updated before output.
    The reason is that your pagecount (and thus any toc, index, and xref's) will be different in each book and thus will need to be  updated.
    The books will still need a opening and updating prior to output, but you could easily (cheaply) script that process so that you could batch output the books.
    -Matt
    Matt Sullivan
    director of training
    roundpeg, inc.
    http://blogs.roundpeg.com
    http://twitter.com/mattrsullivan

Maybe you are looking for

  • Collect Error Message from SAP program to BSP Page

    Hi Experts, I am displaying an error message in the form of pop-up Message  in a Screen based on a condition using BADI on R/3 screen , but when i am calling the screen from Portal (BSP PAge) I am unable to see the Error Message which is being displa

  • Error using BPEL console

    I just encountered an error using the BPEL console in one of our test environments. I got the error when I clicked 'Manage BPEL Domain' and then clicked the 'Threads' tab. I also get the error when I click the 'Statistics' tab. Other tabs are OK, 'Co

  • I can't reach wifi but i see it in my ipad

    how to reach my wifi in house with my ipad. since 6 month no probleme. today no wifi. i can see the wifi in my i pad but impossible to plug it in. signal is there signal is full 3 bar

  • Proxy Exception

    Hi, My interface is ABAP Proxy to JDBC. I generated ABAP proxy, when iam going to activate that I am getting vendor not specified. I am getting Exception : Proxy Exception of class CX_SRT_WSP_ICF. Please provide solution for this issues and help me.

  • Initialise Time Machine on Mac

    Prior to upgrading it to Mountain Lion my backups would finish in minutes. Now my time machine backup is extremely slow 290.5MB in over 4 hours, this is not the inital backup. I have reset my time machine settings and preferences and still no joy. I