I have scoured both this and the Acrobat forum for answers to my problems. Teh problem has 2 parts:
I have a "book" with many chapters - each chapter has many "grants" - each grant is a seperate story and consists of 2 pages and contains absolute hyperlinks to URLS. These grants are grouped by region and by industry as well as by name. I can generate a ToC that goes through and lists all the grants. I then try to export this ToC text file as tagged text - run various scripts to resequence and re-group them. When I try to re-import the tagged text - InDesign crashes, inevitably whether CS3, 4 or 5.5 I am using using Windows XP [Whether I have made changes or not]. . so my assumption is that one cannot re-import tagged text into a table of Contents - correct?
The whole poitn of this is that I want to create a pdf document with a ToC at the front that is hyperlinked to each individual grant. I have worked around the previous problem by havign a duplicate document and simply importing the edited tagged text file. By having seperate pdf files for each grant [thanks to Jongware who provided me with a script to print each story as a seperate pdf file - http://forums.adobe.com/thread/913694] - I can generate a ToC file that is hyperlinked to the individual grant. However, the links to the actual documents are absolute - they contain the whole path name. When I try to move this to another machine - or burn to a CD [the whole point of this exercise] the links fail because they are hard-coded to my path on my local machine. I understand from reading similar issues on this forum that that's the way it is - InDesign can only conceive that links are absolute. Thanks to Habs, who provided me with a script to edit hyperlinks in InDesign - http://in-tools.com/downloads/indesign/scripts/ReplaceHyperlinkUrlValues.jsx. I am still trying to get this to work.
I have discovered that I can take teh tagged text file from InDesign and manipulate it within Word, create a pdf from Word and the link will work even when I change locations. This is due to the fact that in the pdf file - even though the no longer valid file path shows up when I mouseover on the link in the pdf file, it will go to the inidvidual file as long as the PDF file is in the same directory. What happens is, that when it cannot find the file, it looks in the current directory - and voila it is there. This is all very complicated. I am thinking there must be a better way. Currently I take the Word generated Pdf and combine it with a pdf of all the grants and send that along with all the indivdiual grants to the client. Confusion reigns!
I can't believe that I am the only one who has ever wanted to created a ToC that is hyperlinked to actual files and that the whole package must be moved from one machine to another. If I could create the ToC and hyperlink that to individual pages- according to my various groupings - but I cannot create those groupings within InDesign. I can create them outside but cannot re-import the tagged text while keeping the hyperlinks.
Here is a sample of the Word file
ACT - Australian Capital Territory
AUS - Australia
here is a screenshot of the pdf file