Tagged text in Linked Textframes

Hello,
I have an InDesign document with a textframe linked on multiple pages.  inside that textframe, there's tagged text.  I can retrieve the XMLElement objects and the InsertionPoint (xmlElement.getStoryOffset()) in java. Now all I need to do is to know what page each tagged text is on.
Is there any way to do this? I've been looking for hours, and can't find a way

I'm sorry, i don't explaind my situation very well.
With InDesign, i have a program that interop with and populate some textframes on a template.
I want to fill a textframe, and if the textframe have an overflow with the text, i want the textframe resize automaticly and shift the next textframe :
Actually, when a textframe is overflows with text (We can see it on the picture with the little red square on the first bloc of textframes), the textframe is not resized and the next textframe is not shifted to the bottom.
What i want is when the textframe is overflows with text, InDesign resize the textframe in height to fill all the text, and shift the next textframe to bottom of the first textframe.
Sorry for my confuse explanations.
Best Regards.

Similar Messages

  • [CS5] Shift the text in linked textframes

    Hi,
    I have a little problem with the comprehension of linked textframes.
    Actually, i've a little program that fill a template in InDesign CS5.
    I've fours linked textframes, and when i fill the first textframe, i just want to the next linked textframes was shifted automaticly for let place for text.
    Can you please tell me how to achieve that ?
    Best regards.

    I'm sorry, i don't explaind my situation very well.
    With InDesign, i have a program that interop with and populate some textframes on a template.
    I want to fill a textframe, and if the textframe have an overflow with the text, i want the textframe resize automaticly and shift the next textframe :
    Actually, when a textframe is overflows with text (We can see it on the picture with the little red square on the first bloc of textframes), the textframe is not resized and the next textframe is not shifted to the bottom.
    What i want is when the textframe is overflows with text, InDesign resize the textframe in height to fill all the text, and shift the next textframe to bottom of the first textframe.
    Sorry for my confuse explanations.
    Best Regards.

  • Linked Adobe Tagged Text files importing without styles

    I have several data-heavy weekly publications where suddenly, the link to all Adobe Tagged Text format files have the proper paragraph styles and character styles stripped on being placed.  I'm aware of the default settings issue, where you deselect all and make sure the character styles is none, and that does not seem to be the issue. Specifics are
    Working in CS 5 (Version 7.0.4)
    The Adobe Tagged Text format files are exported from Excel spreadsheets
    The InDesign documents have links to the Adobe Tagged Text format files, and Update Link is used inside InDesign to update the text when the file is exported from the spreadsheet.
    When the publications are opened on my workstation, ALL files linked to Adobe Tagged Text files are not imported correctly, they revert to the Basic Paragraph style.
    These are not new documents I'm designing or new Adobe Tagged Text files, this is part of a production process that has worked without issue for years.
    When the same documents are opened on another workstation, and Update Links used, they come in perfectly, so it doesn't seem to be a document or file corruption problem, but a problem with my environment or ID settings.
    It's not one specific document or file, it is every single document that has a link to an Adobe Tagged Text file (and we have lots, I tried several!)
    I've opened the text files in the text editor to check them, but as I mentioned: same document, same files, I'm the only one who can't update without stripping out the styles.
    Thanks! Nancy

    Hi, Peter! Thanks for the response. Yes, it's really Tagged Text. See below. After exporting from the spreadsheet and database, opening the document in InDesign, and selecting update link, we do no editing in InDesign after the fact because everything is already setup exactly as we want it with the Tagged Text format.
    I have literally hundreds of these among several different documents, updated weekly, mainly dealing with prices and numbers. Every one of the links to Tagged Text format files in every publication now strips out the Tagged Text paragraph style and character style formatting on Update Link on my workstation only. On my other two workstations, the links update without issue, and everything is correct in the final document.
    So I'm beginning to think I need to look at rebuilding something, maybe as Joel said, replacing preferences. I keep looking for a workstation or ID option that might effect this.
    <ANSI-WIN>
    <vsn:6><fset:InDesign-Roman><ctable:=<Black:COLOR:CMYK:Process:0,0,0,1>>
    <dps:Pnl Comp\:Pnl Comp \$Numbers=<Nextstyle:Pnl Comp\:Pnl Comp \$Numbers>>
    <dps:Pnl Comp\:Pnl Comp Bold \$Numbers=<BasedOn:Pnl Comp\:Pnl Comp \$Numbers><Nextstyle:Pnl Comp\:Pnl Comp Bold \$Numbers>>
    <dps:Pnl Comp\:Pnl Group \$Numbers=<BasedOn:Pnl Comp\:Pnl Comp \$Numbers><Nextstyle:Pnl Comp\:Pnl Group \$Numbers>>
    <pstyle:Pnl Comp\:Pnl Comp Bold \$Numbers> $302 $302 $278
    <pstyle:Pnl Comp\:Pnl Group \$Numbers> 203 202 211
    <pstyle:Pnl Comp\:Pnl Group \$Numbers> 456 458 393

  • Get text content from Linked TextFrames in order

    Hi,
    How can I get the text content out one by one in order for a linked textframes? Thanks.
    Henry

    for ID 2.0.2 in VBScript
    for a=1 to myStory.TextFrames.Count
    myContents = myStory.TextFrames.Item(a).TextContents
    next
    for ID CS1 and ID CS2 in VBScript
    for a=1 to myStory.TextFrames.Count
    myContents = myStory.TextFrames.Item(a).Contents
    next
    for ID CS3 in VBScript
    for a=1 to myStory.TextContainers.Count
    myContents = myStory.TextContainers.Item(a).Contents
    next
    robin
    www.adobescripts.com

  • False Overset Text in Links Panel

    Mac OX 10.6.4
    CS5
    This is the problem I'm encountering: When I export to .pdf, Indesign Crashes. I've been able to narrow it down to one specific file and actually specific pages. But here is something I've noticed and cannot figure out. I've got three .psd linked files that are showing up as overset (OV) in the links panel, therefore when I click on them ID says it can't show me them because they are in over set text. But my live preflight says there is no over set text. ID jumps to pages still when I click that link but that whole story has no overset text. (i.e. not red overset in the outbox and no overset text in story editor mode. I can't figure out where those three linked objects are or how to select them to delete them. Any thoughts?

    I would suggest running through the same steps as above (which it sounds like you've done) to see if you can isolate a problem, and in addition you might want to try exporting the stories to InDesign Tagged Text, then create a new file, move over the master pages, and place all the exported stories.
    Also, be sure everyone is updated to the 7.5.3 patch.
    dcald wrote:
    The links panel indicates that the images are in overset text but we know for a fact that they are from a previous issue and are no longer in the ID file. Also, preflight indicates that there is no overset text in the file. It is one flow thoughout the entire file. Attempts to create PDF fail consistently. Each time someone has had to build the file again from scratch which for a file over 60 pages long, is not good for feelings towards the ID/InCopy.
    This implies to me that you "recycle" document instead of building a template. ID is pretty stable, but no layout program is perfect and each time you do a save you introduce the possibility of small errors in the file. Somnetimes those small errors become big problems.
    You can reduce the risk of problems on recurring publications by creating a template that contains your master pages, color swatches, styles, and any "static" content that might not be on a master page but still does not change from version to version. Each new version should be made from the template, so it is always a fresh second-generation copy.

  • Importing URLs using tagged text

    I'm trying to import tagged text with URLs into InDesign. InDesign sees the links, but does not seem to know that the links are URLs (rather than text anchors or page links). I have nearly 1500 hyperlinked pieces of text I want to import, so I can't manually create Destination Definitions for all of them. When I try to send definitions in using tagged text, InDesign (CS2) crashes. Any help very much appreciated.

    There are many ways of "tagging" information in an InDesign document. For what you're doing, I'd suggest a unique paragraph style used only for this purpose, then you can search for text in it and use the contents.
    Dave

  • Including Tagged Text in a Table of Contents

    I would like to include only a few words from a given paragraph in the Table of Contents.
    For example in the example paragraph, I would like only the term Blather to appear in the TOC "Blather - Blah blah blah blah."
    Is there a way I can tag "Blather" and then have the TOC dialog include Tagged Text?
    I'm using CS 5.5.
    Thanks you.

    Thanks Peter,
    I like the auto-updating feature of the second option.
    So that I understand, you're suggesting I create a hyperlink destination on the text to display in the TOC (right-click --> Interactive --> New Hyperlink Destination), and then manually insert a cross-reference to that hyperlink destination in my TOC (Type --> Hyperlinks & Cross-References --> Insert Cross-References --> Link to: Text Anchor)?

  • Tagged Text and Hyperlinks

    I am attempting to create a document with two sections that are generated as tagged text via a database. This has worked for years. Now the client wants me to link a name in the first section with the appropriate name/description in the second section. The file will then be saved as a PDF. Seems pretty straight forward.
    Unfortunately, I cannot seem to get the right set of commands to make this work with tagged text. Whenever I want to do something new with tagged text I would just build a sample manually and then export the document to tagged text. From there it is pretty straight forward to reproduce.
    When I try this with my current sample, the exported files do not contain any code for the linking. The destination text appears to have some addition tags that reference them as the destinations, but the source text has no additional tags. I tried Adobe support, but they just said sure it works, but since you are doing scripting we can't help! I haven't even gotten that far yet! I even sent them the sample files and they ignored them.
    Has anyone done this or proven that it can't be done?

    Marc,
    I'm a newbie with InDesign. I'm trying to do something similar as you are. And I'm not having much luck with Hypertext links. Have you made and progress? I've just converted some jobs from FrameMaker to InDesign. (My customer's request). I had much better luck with FrameMaker.
    Thanks,
    Roger

  • Tagged text unexpected results

    I'm having trouble with InDesign 6 tagged text. Here is the tagged text file I'm importing into a series of linked boxes on an InDesign Page.
    <ASCII-MAC>
    <pstyle:title>Access to Health
    <pstyle:author>Donatelle
    <pstyle:sku_k>14173278
    <pstyle:bc_k>µ14173278CÄ
    <pstyle:sku_spot>14173279
    <pstyle:bc_spot>µ14173279KÄ
    When I import this, the lines with the extended character set fail (µ and Ä). There is no error message.
    If I strip out those two characters the file imports correctly.
    I've tried changing the encoding to UNICODE-MAC and ANSI-MAC but neither of those choices worked.
    What should I do to get this to work. I need the special charactes because they are part of a barcode.
    Oh, one more thing. If I have this open in a text editor and copy and paste the data (minus the paragraph style indicators), it works fine. It's just the import that fails.
    Thanks in advance.
    Dennis
    (frustrated in Chicago)

    In reply to my own question, here's what I've discovered.
    Saving a TextWrangler file as Unicode failed. In fact, InDesign imported the file as straight text so I even saw the tags.
    What finally worked for me as this.
    I left the encoding at <ASCII-MAC> and, using TextWranger, I saved it in (Western (Mac OS Roman)) encoding. Now the file imports correctly.
    Thanks, Jongware, for pointing me in the right direction.
    Dennis

  • Soft Returns in Tagged Text

    Our Pindar AgilityCMS content managment system flows text to an InDesign page using a special PlugIn.
    Some characters are stored natively (store an "a", get an "a" on the page), while other special characters are stored using Tagged Text or Unicode. A return can be either <0x000D> or \u000D. This is especially useful because we can output through one of four "channels".... InDesign, Quark, HTML or as entered in the content manager. The return can now be \p in Quark or <BR> in HTML.  A non-breaking space, for example, can be \u00A0 in the InDesign channel, &nbsp; in HTML or <\!s> in Quark. When we insert the "special character" in the Data Editor of our content system, it might be displayed as [sp], but it will resolve correctly regardless of which channel we publish to.
    The problem is that unlike Quark, Adobe does not provide for a "soft return" or forced line break. Sure, you can type one from the keyboard with shift+return, and purists will argue that you'd never want to store a soft (discretionary) return in any type of tagged text or a content management system. However, all our text is set flush left, ragged right, and we frequently want to force line breaks for readability, and do so consistently.
    Instead of:
    On Sale Now Buy One, Get
    One Free
    we always want
    On Sale Now
    Buy One, Get One Free
    Again, this is a problem whether you store your data in simple tagged text files, or if you bring it in via a complex PlugIn, as we do.
    There are many, many threads on this site and elsewhere that discuss this shortcoming. Does Adobe plan to support Soft Returns in Tagged Text with some kind of special tag?

    Your question is predicated on some false assumptions, and I'm afraid Peter, Peter, and Stix didn't quite pick that up in their replies. (This gives me pause since normally they're all very detail-oriented).
    As I told you when you posted in the thread from 2009, "InDesign Tagged Text supports forced line breaks just fine."
    You write:
    Does Adobe plan to support Soft Returns in Tagged Text with some kind of special tag?
    Adobe's import mechanism does indeed support soft returns. There's no need to speculate on Adobe's plans, which is the direction the other replies went to.
    With that in mind, let's move to your actual question:
    Our Pindar AgilityCMS content managment system flows text to an InDesign page using a special PlugIn. 
    Some characters are stored natively (store an "a", get an "a" on the page), while other special characters are stored using Tagged Text or Unicode. A return can be either <0x000D> or \u000D. This is especially useful because we can output through one of four "channels".... InDesign, Quark, HTML or as entered in the content manager. The return can now be \p in Quark or <BR> in HTML.  A non-breaking space, for example, can be \u00A0 in the InDesign channel, &nbsp; in HTML or <\!s> in Quark. When we insert the "special character" in the Data Editor of our content system, it might be displayed as [sp], but it will resolve correctly regardless of which channel we publish to.
    I think you need to address this question to your support channel for Pindar AgilityCMS. Indeed, in IDTT <000A> represents a shift-return. Here's a screenshot of a test textframe:
    and when exported to InDesign Tagged Text, it produces:
    <ASCII-MAC>
    <Version:7><FeatureSet:InDesign-Roman><ColorTable:=<Black:COLOR:CMYK:Process:0,0,0,1>>
    <DefineParaStyle:NormalParagraphStyle=<Nextstyle:NormalParagraphStyle>>
    <ParaStyle:NormalParagraphStyle>Paragraph one
    <ParaStyle:NormalParagraphStyle>Paragraph two<0x000A>P2/Line two
    I presume you have tried <0x000A> as discussed in the prior thread.
    I suppose it's remotely possible this is a Mac/PC issue, because the two operating systems do you different line break characters.
    Anyhow, once again, your criticism of InDesign and Adobe is false and unfair. And if you have a problem with a 3rd party plugin, those are really the people you need to talk to.
    Still, it might be wise to get it working with plain File > Place. Try testing my above IDTT file. Or exporting your own from a sample textframe like the one I used.

  • Hyperlinks in tagged text

    Good morning,
    I'm building tables of contents programmatically and save them as tagged text for importing into InDesign (CS3) for later export to PDF.
    That works fine for bookmarks and hyperlinks to web sites but not for links to other PDF documents. Why?
    In fact if you create bookmarks, http://hyperlinks and file://links in InDesign, they work in PDF, but when you export it as tagged text and then re-import that same tagged text again, the first two still work but the file://links are lost. Why?
    Another funny point: file://links insist on *.indd targets even though the resulting PDF file will look for *.pdf one. Why?
    Thanks for any enlightenment, Texane02

    So it does. It also drops it if you export in GB 18030. I would file a bug report:
    https://www.adobe.com/cfusion/mmform/index.cfm?name=wishform
    Only workaround I can think of would be to enter some other unique character (maybe |?) and find/replace it in ID after bringing in the tagged text.
    Ken
    Hold on, I tried exporting tagged text and then bringing it back in. It's not dropping the forced line break. It's exporting it as a single Line Feed (hex 0a). And it interprets that as a forced line break when importing back in. My text editor ignores Line Feeds. I had to look at it in a hex editor to see the 0a.
    I don't know if that helps any. However you're producing the tagged text, you would need to be able to make it enter a line feed without the carriage return.
    Ken

  • How I generate index markers using Applescript and tagged text!

    One of the challenges I've faced in automating the book making process using Applescript with inDesign is that there don't seem to be any AS commands for making new index markers (anyone please correct me I if I'm wrong about this).
    I've tried various js scripts which do an OK job, but they don't make the actual native markers. This means you have to wait until the book (consistiing of multiple ID files) is complete (so that all the page numbers have been established) to generate the index.
    Recently, I read a tweet from someone with a link to a technique which uses tagged text and find and replace with GREP to edit the tags, inserting the tagged text index tags in the text file and then re-placing the text file in the ID page. In itself, this works great. But I'm dealing with literally thousands of separate text frames, none of them connected in a story.
    The books typically consist of around 1200 pages with almost that many people, each of whose names I need to index with "Lastname, Firstname" references. And those particular strings don't (can't) appear anywhere on the pages. There will also be about 50 ID files all combined into one book. So it is imperative that I have ID generate the native index markers. To help keep things straight and efficient, I'm creating separate small text frames to hold the lastname, firstname strings. I created an object style for these frames which sets the attributes to "nonprinting", and I place the frames in the margin.
    Then I realized that I don't actually have to have ID export the tagged text files for each. I exported one prototype and copied its tags to properties in my script, and then I concatenate them with the respective list item values I import from the database.
    At the proper point in the page building script, I tell "textwrangleer" to make a new document, set its contents to the index string for the current record, save it to disk, overwriting the previous one, and then tell ID to "place" it in the index text frame, which generates the ID index mark.
    I actually got an AS error when I first tried this: "file doesn't exist" or some such. Then I realized that the "place" command was happening too soon, so I inserted a .5 sec delay in the script, and it worked.
    This is actually my first major script for actual work, and I'm so excited about it! I promises to cut production time down to about a thenth of what it was.
    I still have to add some logic to branch between handlers with slightly different parameters for five different page formats, but the same page building handler will work on all of them.

    A note on this:
    Daniel Swanson wrote:
    I've tried various js scripts which do an OK job, but they don't make the actual native markers. This means you have to wait until the book (consistiing of multiple ID files) is complete (so that all the page numbers have been established) to generate the index.
    These scripts typically search for words and immediately write out the page numbers they are found on -- one shot indexing.
    The solution is to add both the topic and its page reference to the current document's index:
    if (app.activeDocument.indexes.length == 0)
        app.activeDocument.indexes.add();
    app.activeDocument.indexes[0].topics.add(app.selection[0].contents).pageReferences.add(app.selection[0]);
    The first lines only make sure there is an index to add to (per default, a new document has none).
    The last line adds a selected word to the index (it must be a plain text string, hence the use of its 'contents'), and then adds a reference to the selection in the text itself.
    Adding the same word a second time will for a change (quite untypically for ID's Scripting) not result in an error but simply add another page reference to the existing one.
    When doing this in a loop: remember to work backwards, because the index marker itself gets inserted into the running text, and that will throw off your text indices.

  • [IDCS3 WIN] Assert while importing tagged text

    Hi,<br /><br />I use the following code to import a tagged text from a buffer into a text frame:<br /><br />IDataBase* database = frameUIDRef.GetDataBase();<br /><br />InterfacePtr<IHierarchy> frameHierarhy(frameUIDRef, UseDefaultIID());<br />int32 count = frameHierarhy->GetChildCount();<br /><br />InterfacePtr<IMultiColumnTextFrame> textFrame(frameHierarhy->QueryChild(0), UseDefaultIID());<br /><br />if( !textFrame )<br />return UIDRef::gNull;<br /><br />UID storyUID = textFrame->GetTextModelUID();<br /><br />InterfacePtr<ITextModel> textModel(database, storyUID, UseDefaultIID());<br /><br />if( !textModel )<br />return UIDRef::gNull;<br /><br />UIDRef result = UIDRef::gNull;<br />InterfacePtr<IK2ServiceRegistry> services(gSession, UseDefaultIID());<br />InterfacePtr<IK2ServiceProvider> service(services->QueryServiceProviderByClassID(kImportProviderService, kTaggedTextImportFilterBoss));<br />InterfacePtr<IImportProvider> prov(service, IID_IIMPORTPROVIDER);<br /><br />InterfacePtr<IPMStream> stream(StreamUtil::CreatePointerStreamRead(taggedtext, strlen(taggedtext)));<br /><br />if (prov->CanImportThisStream(stream) == IImportProvider::kFullImport)<br />{<br />database->BeginTransaction();<br /><br />prov->ImportThis(database, stream, K2::kSuppressUI, &result);  //This line generates the Assert<br /><br />if (result != nil )<br />{<br />Utils<ITextUtils> textUtils;<br />InterfacePtr<ICommand> moveAllStoryCommand(textUtils->QueryMoveStoryFromAllToAllCommand(result, ::GetUIDRef(textModel)));<br />CmdUtils::ProcessCommand(moveAllStoryCommand);<br />}<br />     <br />database->EndTransaction();<br />}<br /><br />It works fine, but when "ImportThis" is called i get this:<br /><br />ASSERT 'fCmdProcessorState == kDoing || fCmdProcessorState != kNotProcessing || cmdMgrRef.GetDataBase()->GetUndoSupport() == IDataBase::kNoUndoSupport' in ..\..\..\source\components\appframework\commandmgmt\CommandProcessor.cpp at line 2889 failed.<br /><br />Any help would be appreciated.<br />Thanks in advance, David

    I would say the problem here is in using database->BeginTransaction()/EndTransaction(). Basically you should never call these methods - you need to find/create a command to do the processing instead, then perhaps wrap the two commands in a command sequence.
    I know there was a post saying ' don't use those methods' a long time ago by Ken Sadahiro (then of Adobe) - you might find it with a search, though will have been archived by now.
    Ian

  • Identifying and Replacing Tagged Text

    I have a TextFrame full of text. Different portions of the text are marked with different Tags.
    I want to identify the various runs of text by the Tag which marked them, and replace the content of that Tagged run of text according to its Tag using my business logic.
    For example, for the tags
    Tag1
    Tag2
    Tag3
    And the following Tagged text (I am including the square brackets which InDesign adds around Tagged text runs)
    [Vini][Vidi][Vici]
    I would like to be able to identify that
    "Vini" is marked by Tag1 (and should be replaced by "Ars")
    "Vidi" is marked by Tag2 (and should be replaced by "Gratia")
    "Vici" is marked by Tag3 (and should be replaced by "Artis")
    And then perform the replacement, giving:
    [Ars][Gratia][Artis]
    How would I go about this?

    Hi,
    look at the xmlelements ... that's the key to succes...
    What i would try to do is ...
    1. Loop over every PageItem
    2. Retreive the associated XML element
    3. Do a recursive search within all sub xmlelements
    4. check the name of every XML element
    5. If it's the correct XML element, change the content property to the new value
    for (var b = 0; b < myDoc.allPageItems.length; b++){
           var myXMLelement = myDoc.allPageItems[b].associatedXMLElement;
          ProcessXMLelement(myXMLelement);                           
    function ProcessXMLelement(elm){
           // Get the name of the Tag
          myTagName = elm.markupTag.name.toString();
         if (myTagName == "myTag"){
                   elm.contents = "New Text";
           // Process all sub elements
           for (var i = 0; i < elm.xmlElements.length; i++){
                ProcessXMLelement(elm.xmlElements[i]); 
    Hopefully this helps
    John

  • Need help with creating text anchors with tagged text.

    Can anyone tell me how to determine the correct value for a "Hyperlink Dest Index" value?
    I have a script which creates a tagged text file that specifies about about 280 pages of tables (thank heavens for autoflow) , and would like to add live links between different parts. I can create a text anchor and a hyperlink to it in InDesign. The tagged text definition for the link source is simple and in-line and exports and imports nicely as tagged text. However, I see that all the link destinations, aka  text anchors, are all exported at the very end of the tagged text files as global definitions, and thier location iin the document is specified by the property HyperlinkDestIndex. However, I can't figure out how to set this value progammatically. I've spent over an hour exporting links, and it sure isn't anything as obvious as character index in the story.
    Any advice appreciated,
      Read Roberts

    Read, I'm not sure the following is going to help you. It works for external hyperlinks, but you want internal links, right? Anyway, it might give you some clues.
    A funny thing: I was reviewing some script where I got links to work, and I spotted a tiny coding error. Links seemed to be defined by two separate identifiers: a "link name", which is what appears in Edit Hyperlink dialog, and a "Dest Key", which seems to be a simple increasing number. However, due to aformentioned coding error, the dest keys between the actual link and its definition were off by '1', so there was no way that ought to have matched. But it still worked! So "Dest Key" is a red herring ...
    As far as I understand, it works like this (for hyperlinks): in your text, you have
    HplName -- this is actually the 'title' that appears in the Hyperlink palette
    HplDest -- this is the 'internal name'
    DestKey. Hm. Perhaps you could omit this, per above obsvn.
    CharStyleRef, the name of the auto-applied style
    Hid -- seems to be always '0'
    HplOff: the "offset" from this entire command to the start of the hyperlink, in InDesign characters.
    HplLen: the "length" from the hyperlinked text, in InDesign characters.
    and in the list of 'proper' definitions, those that appear at the very end of your file:
    HplDestDfn -- the internal name again
    DestKey -- see above
    HplDestUrl -- finally! A real URL! (But you must escape lots of characters, such as the forward slash and colon.)
    Hid -- again, always seems to be '0'.
    Some of these items are perhaps optional, but experimenting with what may be left out only lead to frustration The Tagged Text guide is far from complete, as I'm sure you already knew.
    As noted, some (or all) of the named items need a backslash escape for a few characters, but I can't find a definitive way to determine in advance what is 'good' and what is 'not good'.
    The following script creates a Tagged Text file with a couple of working hyperlinks in it -- I don't know if this is of any help for your internal links.
    var hyperlinkDest = [];
    var text = "This is some text with a link [http://www.jongware.com/idjshelp.html] and another one [http://forums.adobe.com/thread/1014617?tstart=0] in it.";
    var tagtext = text.replace (/\[(.+?)\]/g, function (full, match)
                        return makelink (match, 'title:'+match, match, match);
    // When done processing plain text, add the destinations at the end:
    tagtext += hyperlinkDest.join('');
    tagFile = File(Folder.myDocuments+'/__tmp.txt');
    if (tagFile.open('w') == false)
              alert ("Unable to create temporary file!");
              exit();
    if (File.fs == "Windows")
              tagFile.write ("<ASCII-WIN>\n");
    else
              tagFile.write ("<ASCII-MAC>\n");
    tagFile.write ("<dcs:HYPERLINK=<cu:1>>\n");
              tagFile.write (tagtext);
    tagFile.close();
    // 'text' is the actual text that will be clickable
    // 'title' is what will appear in the Hyperlinks palette
    // 'name' is the internal name in the Edit Hyperlink dialog
    // 'url' is the actual URL that will be linked to
    function makelink (text, title, name, url)
              var destkey = hyperlinkDest.length;
              // In URL you must escape forward slashes and colons
              // .. and some other characters as well, by the way. There seems to be no list
              url = url.replace(/\//g, '\\/').replace(/:/g, '\\:');
              hyperlinkDest.push ('<HplDestDfn:=<HplDestName:'+name+'><DestKey:'+String(destkey)+'><HplDestUrl:'+url+'><Hid:0>>');
              return '<Hpl:=<HplName:'+title+'><HplDest:'+name+'><DestKey:'+String(destkey)+'><CharStyleRef:HYPERLINK><Hid:0><Brdrv:0><HplOff:0><HplLen:'+String(text.length)+'>>'+text;

Maybe you are looking for

  • New features list or roadmap for improvements?

    Hi Just wondering if there is a list of enhancements that are currently in development or proposed? This might eliminate some of the duplicate requests for new features if people can see what's coming. Thanks

  • ITunes crashes whenever I try to sync videos

    Hey everyone, Just yesterday I purchased a new 6th Gen iPod Classic, and syncing music is fine, but when it comes to syncing videos it's a totally different story. I sync my iPod (which has all the music on) and there are no more songs to go on it, s

  • 3.0 EA1: Unload to text file generates extra file

    I've just did few tests on 3.0 and when i unloaded (export) the data to a text file i've seen that: 1) the file extension is tsv and not txt 2) another files called "Generated0141598725703.sql"; is exported on the file system and shown in SQL Develop

  • Show Poster Frame Automatically?

    Hi, Is there a setting where I can have each video I download show its poster frame? I notice in Windows this happens automatically within a folder. Thanks. G5 Quad   Mac OS X (10.4.8)   Dell 2405

  • Need recommendation on dvd discs.

    Want to burn home movies from my dv camcorder to dvd using the superdrive. Looking for recommendations on dvd media that work well in the MacBook as I haven't tried this before. Looking for high quality. Thanks!