Structure textframe indesign

hi
i use cs ext builder 2 and i develop an indesign extension.
do u know how to retrieve the structure of a textframe (paragraphe > paragraphe > table....) content. i want to know where is a table in a textframe...
thanks
Simon

If you want to get a collection of all tables which starts in a text frame you'd do something like this: myTextFrame.tables. However, this will not find tables continued from a previous text frame. For that you need to work backwards and infer it from the textframes the table occupies (assuming there is one).
For InDesign-specific questions like this, the InDesign Scripting forum is a better place to ask: http://forums.adobe.com/community/indesign/indesign_scripting

Similar Messages

  • Shape of textframe indesign

    hi
    i develop an indesign extension with CS extension builder 2 and flashbuilder 4.6.
    how to retrieve the shape (rectangle, oval, polygon...) of a textframe, i don't find any properties in textframe class ?
    thanks
    Simon

    You need to examine the path to figure out the shape.
    You might be able to infer the shape by duplicating the text frame and changing the content type to unassigned and then checking the class name...

  • Stability of pdf bookmark structure from InDesign

    I have been struggling in InDesign and Acrobat with a fairly complex pdf. I use CS2 Suite. I have built 6 books in ID each with TOC and bookmarks. I have created a TOC nav document to go to any book. Individually the pdf works fine in Acrobat. Clicking on the TOC item goes to the start of that section as desired. I put an ID button on each cover page of the 6 books that returns to the 8 page TOC cover.
    As soon as I put the TOC button on each books cover, the TOC in the book stopped working and goes to the book cover. When I use the Acrobat link tool, the destination has become "p0". I manually enter the destination page within the doc, but this is fragile.
    My goal is to burn the six book pdfs and the TOC pdf to CD for distribution. What makes this TOC to PDF data so fragile? How do I need to build and save my ID docs stronger? I can do this, but I just don't see where this "p0" is coming from. I am posting to Acrobat forum as well. Thanks

    I have been rebuilding this set of ID files to PDFs as I stated. In the process I have clarified for myself how to get a good TOC by not expecting text generated by ID, in this case, the section marker instead of the desired TOC styled text. So I am getting clean TOC and pdf bookmarks now.
    But the next step in this project has been to build a good NAV document in ID so that when I burn them all to a CD for distribution the user can navigate using buttons. In my case buttons added to the cover page of each PDF that take the user back to the CD NAV file. The NAV file has links that take the user to an individual book.
    I'm finding a lot of instability in this process of coaxing the various NAV buttons to both work and not do stuff like dropping nested styles from the a book file's individual style sheet, reversing the order of styles in the TOC style option, or like you responded to here, changing the bookmarks from the TOC to this "p0" after putting on the front NAV button.
    I have gotten all the pdfs for both the books and NAV document finalized and burned to a CD, where they seem to work. I am now trying to figure out what is causing all these ID reconfigurations of my styles and TOC bookmark destinations.

  • Indesign crashes

    Hello,
    when assign new bounds to textframe indesign crashes.what is the reason behind this?can anybody help me?

    Hi Govind,
            There is no possibilities for crash. Post the js code... Let me look on it. Else, if happen, u restart the application. It'll work well...
    Regards,
    Vel.

  • Pls suggest for new xml flow in InDesign...

    Hi everyone,
    we have pitched into the new xml workflow in InDesign. Basically it looks like Pearson ETM XML workflow followed in Quarkxpress.
    Please go through this sample pearson xml coding followed in quark:
    DUE TO PROBLEM IN POSTING WE HAVE CHANGED < > AS [ ] IN ALL TAGS.
    [unitPart id=c01-upt-0001]
    [title]Defining the Realm[/title]
    [sect1 id=c01-sec1-0001]
    [title]Geographical Features[/title]
    [p]As Figure [xref target=c01-fig-0001/] shows, For many centuries Europe has been a hearth of achievement, innovation, and invention.[figureAnchor figures=c01-fig-0001/][/p]
    [sect2 id=c01-sec2-0001]
    [title][huc]E[/huc]uropes Eastern Border[/title]
    [p]The European realm is bounded on the west, north, and south by Atlantic, Arctic, and Mediterranean waters, respectively.Chapters [anchor id=c01-anc-0001/] and [anchor id=c01-anc-0002/].[/p][/sect2]
    Here our customer asked to proceed the same above xml structure in InDesign.
    For example: in above xml [title] tag comes under [sect1] tag as well as [sect2] tag. In Quarkxpress, we can control this [sect1] after [title] tag as [H1] style and [sect2] after [title] tag as [H2] style and so on through CPL rules.
    Here we struggle to follow the above process with InDesign. Because in InDesign if we pour the above xml the [title] tag should treated as [title] style only.
    So please guide and help us whether it is possible to follow the above xml process in InDesign....
    Thanks in Advance
    Thiyagu

    It's one of the major differences between Quark and ID.
    ID has a "paragraph composer" as will as a single line composer like Quark's, and it's on by default. When you use the paragraph composer the text is constantly analyzed and spacing adjusted for the best fit and appearance (according to the spacing algorithm and your justification settings) for the entire paragraph. If you force a line break, ID may adjust all the lines above as well as the lines that follow.
    If this is a "serious problem" you shoud probably witch to the single line composer. You'll find a drop down for it in the paragraph style definitin dialog under the Justification settings, or you can change an individual paragraph as a local override from the Control panel flyout menu.
    Most of us whove been ID users for some time find the paragraph composer to be one of the strenghts of ID, and feel it generates nicer looking text than a single line composer.

  • Pure xml flow in InDesign suggest pls...

    Hi everyone,
    we have pitched into the new xml workflow in InDesign. Basically it looks like Pearson ETM XML workflow followed in Quarkxpress.
    Please go through this sample pearson xml coding followed in quark:
    DUE TO PROBLEM IN POSTING WE HAVE CHANGED "< >" AS "[ ]" IN ALL TAGS.
    [unitPart id=c01-upt-0001]
    [title]Defining the Realm[/title]
    [sect1 id=c01-sec1-0001]
    [title]Geographical Features[/title]
    [p]As Figure [xref target=c01-fig-0001/] shows, For many centuries Europe has been a hearth of achievement, innovation, and invention.[figureAnchor figures=c01-fig-0001/][/p]
    [sect2 id=c01-sec2-0001]
    [title][huc]E[/huc]urope&apos;s Eastern Border[/title]
    [p]The European realm is bounded on the west, north, and south by Atlantic, Arctic, and Mediterranean waters, respectively.Chapters [anchor id=c01-anc-0001/] and [anchor id=c01-anc-0002/].[/p][/sect2]
    Here our customer asked to proceed the same above xml structure in InDesign.
    For example: in above xml [title] tag comes under [sect1] tag as well as [sect2] tag. In Quarkxpress, we can control this [sect1] after [title] tag as [H1] style and [sect2] after [title] tag as [H2] style and so on through CPL rules.
    Here we struggle to follow the above process with InDesign. Because in InDesign if we pour the above xml the [title] tag should treated as [title] style.
    So please guide and help us whether it is possible to follow the above xml process in InDesign....
    Thanks in Advance
    Thiyagu

    Hi,
    John Hawkinson thank you so much your suggestion.
    I am new  this type of discusion (on this page). So i think anybody could not replay my answer. So i repost my question.
    I want insert tags in my Indesign CS4 files. Is this posible when i select my powermath equaiton then run script. Script add tags automatically before/after my equation. Please ignore IDML word.
    Yes i an comfortable with XSLT presently i working with Pearson ETMV2.
    I have one more question when i past my snapshot its appear properly but when i agin see my commant then my snapshot disappear (see small blue rectangle).
    Thank you John again i am new in this industry please guide.
    snegig

  • Desktop - InDesign CS5.5 - Dictionary

    Hi,
    I have a user dictionary with 100205 lines (words), which I am trying to import into InDesign CS5.5
    Unfortunately, InDesign get crash when some attempt. Even it import successfully, if I key anything in the textframe, InDesign get crash. Below goes the error message. The same dictionary works well with CS6.0.
    Error log in Event viewer
    Fault bucket -744243685, type 1
    Event Name: APPCRASH
    Response: Not available
    Cab Id: 0
    Problem signature:
    P1: InDesign.exe
    P2: 7.5.3.333
    P3: 4f6b9e72
    P4: StackHash_b963
    P5: 0.0.0.0
    P6: 00000000
    P7: c00001a5
    P8: PCH_7C_FROM_ntdll+0x0003D72C
    P9:
    P10:
    Thanks in advance.

    In future, please put your crash reports on pastebin.com and give us a link...
    I would remove the Extensis auto-activation plugin for starters.

  • Asign paragraph styles to xml nodes

    Hello all,
    I try to asign paragraph styles to xml nodes. I tried to autoasign the styles to tags and also to assign the styles directly to the xml tags with aid:pstyle. None of it with success. I think that this happens because there is a paragraph formating missing in my xml. I tried to change this with <aid:br/> but also no success.
    This is how my xsl looks like:
    <?xml version="1.0" encoding="UTF-8"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
      <xsl:output method = "xml" version="1.0" encoding="UTF-8" indent="yes"/>
      <xsl:strip-space elements="*"/>
      <xsl:template match="ooo_sheet">
        <Root>
          <xsl:for-each select="ooo_row">
              <Artikel>
              <xsl:copy-of select="Artikelnummer"/>
                  <Bild>
                        <xsl:attribute name="href">
                      <xsl:text>file:///</xsl:text>
                      <xsl:value-of select="Bildpfad"/>
                        </xsl:attribute>
                  </Bild>
                  <Text xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" xmlns:aid5="http://ns.adobe.com/AdobeInDesign/5.0/">
                        <EK aid5:pstyle="EK"><xsl:value-of select="EK"/><aid:br/></EK>
                    <Details aid5:pstyle="Details"><xsl:value-of select="Details"/><aid:br/></Details>
                    <Abmessungen aid5:pstyle="Abmessungen"><xsl:value-of select="Abmessungen"/><aid:br/></Abmessungen>
                    <Artikelnummer aid5:pstyle="Artikelnummer"><xsl:value-of select="Artikelnummer"/><aid:br/></Artikelnummer>
                  </Text>
              </Artikel>
          </xsl:for-each>
        </Root>
      </xsl:template>
    </xsl:stylesheet>
    I want to achieve that I can pull the the following tag from the structure view in Indesign to a textframe and the text gets the different formating.
    <Text xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" xmlns:aid5="http://ns.adobe.com/AdobeInDesign/5.0/">
                        <EK aid5:pstyle="EK"><xsl:value-of select="EK"/><aid:br/></EK>
                    <Details aid5:pstyle="Details"><xsl:value-of select="Details"/><aid:br/></Details>
                    <Abmessungen aid5:pstyle="Abmessungen"><xsl:value-of select="Abmessungen"/><aid:br/></Abmessungen>
                    <Artikelnummer aid5:pstyle="Artikelnummer"><xsl:value-of select="Artikelnummer"/><aid:br/></Artikelnummer>
    </Text>
    Could anyone point me to the right direction? Any help is very welcome. Thank you for your help.

    Sorry, my last example was the xsl instead of the xml. Here is the xml I got. I want to pull the Root/Artikel/Text Tag to a frame and all Child tags within should be formated with the corresponding pstyles.
    But it looks like as if Indesign just does not tranform the aid5 style upon xml/xlst import. The <aid:br> tags you see are just a try of myself to get the tags within the Text tag separated as paragraph.
    But Indesign just interprets them as normal tags and also shows them in the structure pane.
    Thank you very much for your help. I also tried to format the text with the paragraph styles by hand and export the whole thing as xml from Indesign. But Indesign just the xml the same way I imported it. The same happens when I manually create a xml structure in Indesign, assign the styles to the text within the frame. Indesign just exports the raw xml structure. But no style declarations. So I can't see how to format the tags the right way.
    This is how my xml looks like when I import it with the upper xsl.
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Root>
        <Artikel>
            <Artikelnummer>C12-34567</Artikelnummer>
            <Bild href="file:///Users/Diamondgroup/Desktop/KatalogBeispiel/cmyk/C12-34567.PSD"></Bild>
            <Text xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" xmlns:aid5="http://ns.adobe.com/AdobeInDesign/5.0/">
                <EK aid5:pstyle="EK">1234,-<aid:br></aid:br></EK>
                <Details aid5:pstyle="Details">AAA AAA AAA AAA<aid:br></aid:br></Details>
                <Abmessungen aid5:pstyle="Abmessungen"><aid:br></aid:br></Abmessungen>
                <Artikelnummer aid5:pstyle="Artikelnummer">C12-34567<aid:br></aid:br></Artikelnummer>
            </Text>
        </Artikel>
        <Artikel>
            <Artikelnummer>C23-45678</Artikelnummer>
            <Bild href="file:///Users/Diamondgroup/Desktop/KatalogBeispiel/cmyk/C23-45678.PSD"></Bild>
            <Text xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" xmlns:aid5="http://ns.adobe.com/AdobeInDesign/5.0/">
                <EK aid5:pstyle="EK">2345,-<aid:br></aid:br></EK>
                <Details aid5:pstyle="Details">BBB BBB BBB BBB<aid:br></aid:br></Details>
                <Abmessungen aid5:pstyle="Abmessungen"><aid:br></aid:br></Abmessungen>
                <Artikelnummer aid5:pstyle="Artikelnummer">C23-45678<aid:br></aid:br></Artikelnummer>
            </Text>
         </Artikel>
    </Root>
    All the xsl: transformations work but the aid: and aid5: transformations just show in the xml as they where in the xsl.

  • Polulate Text frames with XML content - PLEASE help me.

    Hi guys,
    I'm trying to import some xml data to an indesign file. Here are the steps I'm doing:
    1- create new document
    2- create master page
    3- create empty text fields in the master to be tagged
    4- import tags from xml
    5- import xml
    then it simply don't auto populate the text fields wiith the xml content.
    I've already spent about 10 hours trying to figure out what can be the problem...
    My structure in indesign (BEFORE importing XML):
    businesscards
    Card
    employeeName
    employeePosition
    employeeAddressln1
    employeeAddressln2
    employeePhone
    employeeEmail
    My structure in indesign (AFTER importing XML):
    businesscards
    Card <!-- has dropdown arrow with xml content inside -->
    Card <!-- has dropdown arrow with xml content inside -->
    Card <!-- has dropdown arrow with xml content inside -->
    Card <!-- has dropdown arrow with xml content inside -->
    employeeName
    employeePosition
    employeeAddressln1
    employeeAddressln2
    employeePhone
    employeeEmail
    But it doesn't populate the text frames...
    I've already tried to write text in the text frames and tagged them, so I can see those colored brackets. But it doesn't work and makes a mess in the structure.
    Please, can someone help me, do you know a good step by step tutorial online? What am I doing wrong?
    <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <businesscards>
    <Card>
    <!-- contents of Suzan Reed -->
    <employeeName>Suzan Reed</employeeName>
    <employeePosition>Director of Marketing</employeePosition>
    <employeeAddressln1>506 SE 72nd Avenue</employeeAddressln1>
    <employeeAddressln2>Portland, Oregon 97215</employeeAddressln2>
    <employeePhone>503-481-5858 direct</employeePhone>
    <employeeEmail>[email protected]</employeeEmail>
    </Card>
    <Card>
    <!-- contents of Gabriel Powell -->
    <employeeName>Gabriel Powell</employeeName>
    <employeePosition>Senior Training Director</employeePosition>
    <employeeAddressln1>25 NW 23rd Place, Suite 6-122</employeeAddressln1>
    <employeeAddressln2>Portland, Oregon 97210</employeeAddressln2>
    <employeePhone>503-515-5404 direct</employeePhone>
    <employeeEmail>[email protected]</employeeEmail>
    </Card>
    <Card>
    <!-- contents of Dale Erwing -->
    <employeeName>Dale Erwing</employeeName>
    <employeePosition>Trainer</employeePosition>
    <employeeAddressln1>5131 Buffalo Ave. #20</employeeAddressln1>
    <employeeAddressln2>Sherman Oaks, CA 91423</employeeAddressln2>
    <employeePhone>310-795-8943 cell</employeePhone>
    <employeeEmail>[email protected]</employeeEmail>
    </Card>
    <Card>
    <!-- contents of Jim Conner -->
    <employeeName>Jim Conner</employeeName>
    <employeePosition>Trainer</employeePosition>
    <employeeAddressln1>25 NW 23rd Place, Suite 6-122</employeeAddressln1>
    <employeeAddressln2>Portland, Oregon 97210</employeeAddressln2>
    <employeePhone>503-515-2376 cell</employeePhone>
    <employeeEmail>[email protected]</employeeEmail>
    </Card>
    </businesscards>
    Thanks in advance

    It worked! thanks ... But...
    But only if I don't apply to the Master when I apply to the master all the other cards have the same content as the first of the XML. :(
    Even when I try to create multiple pages (cards) with no Master page (too time consuming), I can't figure out a way of having the other cards filed with the remaining data of the XML. :(
    I don't want to drag the elements one by one to every single card (they are so many...)
    Is there a way of having the structure organized in a way to have indesign auto populate and auto create pages?
    thanks for any kind of advice.

  • ID CS5 crashing when copying/cutting

    Hi,
    I'm not able to cut or copy a passage, because ID is crashing each time I copy or cut a passage. This passage is made of some paragraphs with heading and body styles. The fonts are the system's Helvetica and Times. There is an inline icon, and an image placed above line. This is an excerpt from the crash log. Does someone can read it and give me a hint of what is happening?
    Exception Type:  EXC_BAD_ACCESS (SIGBUS)
    Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000
    Crashed Thread:  0
    Thread 0 Crashed:
    0   ???                           0xa00650d8 _XHNDL_trapback_instruction + 0
    1   ...adobe.InDesign.SangamExport 0x242cb00c 0x242a5000 + 155660
    2   com.adobe.Writer for Text     0x353c7f94 ResetWriterInstance() + 820
    3   com.adobe.Writer for Text     0x353c481e 0x353c1000 + 14366
    4   com.adobe.Writer for Text     0x353c4884 0x353c1000 + 14468
    5   com.adobe.Writer for Text     0x353c8ad7 SMTerminateConnection + 471
    6   com.adobe.Writer for Text     0x353c2aae 0x353c1000 + 6830
    7   com.adobe.Writer for Text     0x353c20dc 0x353c1000 + 4316
    8   com.adobe.Writer for Text     0x353c21f8 0x353c1000 + 4600
    9   com.adobe.Writer for Text     0x353c2876 0x353c1000 + 6262
    10  com.adobe.Writer for Text     0x353c78f8 0x353c1000 + 26872
    11  com.adobe.Writer for Text     0x353c6d40 0x353c1000 + 23872
    12  ...adobe.InDesign.SangamExport 0x242da5b4 GetPlugIn + 26756
    13  ...adobe.InDesign.SangamExport 0x242b1417 0x242a5000 + 50199
    14  ...adobe.InDesign.SangamExport 0x242b082c 0x242a5000 + 47148
    15  ...adobe.InDesign.SangamExport 0x242d5189 GetPlugIn + 5209
    16  ...adobe.InDesign.SangamExport 0x242d5827 GetPlugIn + 6903
    17  ...adobe.InDesign.SangamExport 0x242d4c17 GetPlugIn + 3815
    18  com.adobe.InDesign.Text       0x1df7e4da GetPlugIn + 1040922
    19  PublicLib.dylib               0x014f0a54 CDataExchangeHandler_Extensible::Externalize(IPMDataObject*, unsigned long, IPMStream*) + 148
    20  ...adobe.InDesign.AppFramework 0x196306d1 GetPlugIn + 669857
    21  ...adobe.InDesign.AppFramework 0x1962e766 GetPlugIn + 661814
    22  ...adobe.InDesign.AppFramework 0x1962e713 GetPlugIn + 661731
    23  com.apple.HIToolbox           0x9709f260 PasteboardPromiseKeeper(OpaquePasteboardRef*, void*, __CFString const*, void*) + 170
    24  com.apple.HIServices          0x93c4300e PasteboardCopyDataProc(void*, __CFPasteboard*, long, long, __CFString const*) + 460
    25  com.apple.CoreFoundation      0x95f18bfc __CFPasteboardClientCallBack + 508
    26  com.apple.CoreFoundation      0x95f088c1 __CFMessagePortPerform + 193
    27  com.apple.CoreFoundation      0x95f2a6b8 CFRunLoopRunSpecific + 3896
    28  com.apple.CoreFoundation      0x95f2aaa8 CFRunLoopRunInMode + 88
    29  com.apple.HIToolbox           0x96e7d2ac RunCurrentEventLoopInMode + 283
    30  com.apple.HIToolbox           0x96e7cffe ReceiveNextEventCommon + 175
    31  com.apple.HIToolbox           0x96fc0377 ReceiveNextEvent + 58
    32  ...adobe.InDesign.AppFramework 0x1956b861 0x19568000 + 14433
    33  ...adobe.InDesign.AppFramework 0x195c9cef GetPlugIn + 249535
    34  ...obe.InDesign.Application UI 0x1b119fad 0x1b100000 + 106413
    35  ...obe.InDesign.Application UI 0x1b1582e9 GetPlugIn + 36665
    36  ...adobe.InDesign.AppFramework 0x195c7f85 GetPlugIn + 242005
    37  ...adobe.InDesign.AppFramework 0x195c8eac GetPlugIn + 245884
    38  ...adobe.InDesign.AppFramework 0x1956ae78 0x19568000 + 11896
    39  ...adobe.InDesign.AppFramework 0x195905fa GetPlugIn + 14282
    40  com.adobe.InDesign            0x000028ab main + 187
    41  com.adobe.InDesign            0x000027c6 start + 54
    Thread 0 crashed with X86 Thread State (32-bit):
      eax: 0x00000000  ebx: 0x242ca047  ecx: 0x00000000  edx: 0xbfffd2a3
      edi: 0x00000000  esi: 0x2ed9cc30  ebp: 0xbfffd0b8  esp: 0xbfffce70
       ss: 0x0000001f  efl: 0x00010246  eip: 0xa00650d8   cs: 0x00000017
       ds: 0x0000001f   es: 0x0000001f   fs: 0x00000000   gs: 0x00000037
      cr2: 0x00000000

    I am working on an ePUB with 10 indd and 1 indb. In the index.indd:
    1. Cross references sometimes missing when re-opening.
    2. Since I have multiple X-ref with same source, I thought copy-&-paste the source ref will save me time. Nope, InDesign crashes most of the time during paste. I believe the x-ref database and linking structure in InDesign is very buggy!
    Partial Error Log:
    Thread 0 Crashed:  Dispatch queue: com.apple.main-thread
    0   ...e.InDesign.Hyperlinks Panel     0x248eae71 GetPlugIn + 68065
    1   ...e.InDesign.Hyperlinks Panel     0x248e635a GetPlugIn + 48842
    2   ...e.InDesign.Hyperlinks Panel     0x248d1263 0x248d0000 + 4707
    3   ...e.InDesign.Hyperlinks Panel     0x248d2a76 0x248d0000 + 10870
    4   ...e.InDesign.Hyperlinks Panel     0x248d39be 0x248d0000 + 14782
    5   WidgetBinLib.dylib                 0x029cad89 ActiveSelectionObserver::Update(IDType const&, ISubject*, IDType const&, void*) + 121
    6   ...e.InDesign.Hyperlinks Panel     0x248d192f 0x248d0000 + 6447
    7   ...e.InDesign.Hyperlinks Panel     0x24924848 GetPlugIn + 304056
    8   ...e.InDesign.Hyperlinks Panel     0x248ec728 GetPlugIn + 74392
    9   WidgetBinLib.dylib                 0x028f99d9 PanelView::DrawChild(IPanelControlData*, short, IGraphicsContext*) + 985
    10  WidgetBinLib.dylib                 0x028f8ec6 PanelView::Draw(IViewPort*, __HIShape*) + 166
    11  WidgetBinLib.dylib                 0x0297bee5 MWindow::Paint(IViewPort*, __HIShape*) + 1253
    12  WidgetBinLib.dylib                 0x02979c12 MWindow::SystemPaint() + 370
    13  WidgetBinLib.dylib                 0x02982589 CWindowEH::Update(IEvent*) + 57
    14  WidgetBinLib.dylib                 0x029816b4 MWindowEH::Update(IEvent*) + 100
    15  WidgetBinLib.dylib                 0x02980400 CDefaultEH::Update(IEvent*) + 48

  • Catalog Index

    I am using Indesign CC to create a 1200 page catalog. The data is imported in via an XML document with tagged elements. I am struggling to get the information to show up in the Topics/Reference area of the Index Tab. Is there a way to link the tagged elements of the structure panel with the Index Tab to create an index without having to indivually double-click on each word that I'd like added to the Index. I was told by a colleague of mine that the XML structure in Indesign was only there for layout and linking styles and that it is not used to link information to the Index Tab to help generate an index.

    i ran into the similar issue. what i'm doing as a work around is to hack the Table of Content functionality to generate an index, and the Index function to generate a table of content. it worked quite well for me, but i only have to deal with a 200 page catalog, not 1200.
    i know it's late, but at least someone else might end up with the same question.

  • Indesign Comparing XML Structure

    Can Anyone help me ?????
    I have wasted a lot time in this query with no result please help me to achieve my desired output.
    i want to display all XmlAttributes of a xml structure in a TextFrame of indesign CS4 that match the following conditions :-
    1) for a selected Character Style ( KT), XmlAttribute of one document(i.e CHAPTER ) must have same value as other document(GLOSSARY) that is being compared. then keywords with same id & olinkend would be displayed in a text frame.
    snapshot 1 shows chapter with highlighted keyterm & its olinkend (which to be used for comparison).
    snapshot 2 shows Xml Structure of Glossary with highlighted glossentry & its id
    Snapshot 3 shows Xml Structure of chapter(containing keyterm its olinkend)
    Snapshot 4 shows Xml Structure of chapter(containing glossary)
    in above snapshot pathology,etiology,pathogenesis,infection and disease have same olinkend(keyterm in chapter) and id (glossentry in glossary) but Human Microbiome Project  do not have different id & olinkend so its not a keyterm. it should not be displayed in text frame with  keyterms but somehow it is tagged wrongly as KT .we dont want it to b displayed.
    my text frame displayed it as
    i want a javascript code to display only keyterms in a text frame( in active document i.e. chapter )where keyterm olinkend = glossentry id and finally save the data to excel file .
    i have taken this code from ADOBE FORUM plz modify this to achieve my output.
    var myDc =app.activeDocument;
    var mySty = myDc.characterStyles.everyItem().name;
    var myDia = app.dialogs.add({name:"Character Style Display Menu", canCancel:true});
         with(myDia.dialogColumns.add()){  
              with(borderPanels.add()){
                   with(dialogColumns.add()){staticTexts.add({staticLabel:"Select Character Style:  "});}
                        with(dialogColumns.add())
                                                                var SelSty = dropdowns.add({stringList:mySty, selectedIndex:0});}
    var myRes = myDia.show();
    if(myRes==true)
          var myChoice = mySty[SelSty.selectedIndex];
                myDia.destroy();
    else
    { exit();}
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.appliedCharacterStyle = myChoice.toString();
    var myFind = app.findText(false).reverse();
    for(var a=myFind.length-1; a>=0; a--){
         var  myString= myFind[a];
         var myPg = myString.parentTextFrames[0].parent.name;
         var myCon = myString.contents;
         app.selection[0].insertionPoints[-1].contents = String(myCon+"\t"+myPg);
         app.selection[0].insertionPoints[-1].contents = "\r";
    app.findTextPreferences = app.changeTextPreferences = NothingEnum.nothing;
    if(myCon==null)
                                                      alert("Character Style not found");
    HOPE YOU WILL UNDERSTAND MY QUERY.
    THANX
    WAITING FOR REPLY.

    Could Peter or someone move this to the scripting forum, please?

  • Would like to create a script for list all elements and structure of an indesign document

    Hello everybody,
    I'm a very beginner in indesign scripting.
    I would like to create a script in order to list all elements and the inner structure of a n indesign document.
    The aim for me is to understand how elements are sorted and arranged into indesign, and be able to find an specific element by its item name.
    The output document could be an xml or txt document with a treeview structure.
    I would like have a rough idea of which kind of javascript code I should use for that.
    Thanks for answers.

    Hi Ossydoc,
    You can use Muse to create such a website. All you need to do is, create links in Muse for the sermons and select  " link to File " in the hyperlink option and link to those Mp3 files.
    Please refer to this screenshot :- http://prntscr.com/4xvdup
    Now, when you publish your site,  Muse would automatically upload those files onto the server and the users would then be able to listen as well as download those sermons using the links on your site.
    Hope this helps
    Regards,
    Rohit Nair 

  • Page number of linked textframe in indesign document

    Hi,
      My indesign document has linked pages 1 - 10 (ie., linked textframes).  I want to take page number of selected text from 5th page., which textframe is linked textframe of 1st page.  When i use the following code for findpage, its returning the page no 1 instead of 5. 
    Kindly reply for me...
    var page = findPage(app.selection[0]);    // selection is a word/para
    function findPage(theObj)
        var thePage = theObj;
        if (thePage.hasOwnProperty("baseline"))
            thePage = thePage.parentTextFrames[0];
        while (thePage.constructor.name != "Page")
            var whatIsIt = thePage.constructor.name;
            switch (whatIsIt)
                case "Story" :
                    thePage = thePage.textFrames[-1].parent;
                    break;
                case  "Character" :
                    thePage = thePage.parentTextFrames[0];
                    break;
                case "Cell" :
                    if ( thePage.insertionPoints[0].parentTextFrames[0] == null)
                        // contents of cell is overset
                        thePage = tryHarderForCell(thePage);
                        if (thePage == null) return null;
                        break;
                    else
                        thePage = thePage.insertionPoints[0].parentTextFrames[0];
                        break;
                case "Application" :
                return null;
            thePage = thePage.parent;
        return thePage ;

    Hi,
      Thank u... Its working...

  • Structure inDesign document and export as XML for use in the web

    Hello everyone,
    I just recently started using inDesign and I am fascinated by its possibilities! I use it for a project where a finished inDesign layout that is used for a printed publication is now supposed to be transformed for implementing it on a web site. My job is to export the inDesign document as an XML file. After massive reading the last weeks I'm quite familiar with the structuring and tagging in inDesign. Though there's some issues I do not understand. Your precious advice would be of highest meaning to me
    The programmer who will later use my XML output for the web-transformation needs the document structured in different levels like "Root > Chapter > Subchapter > Text passage / table". I already structured the document with tags like title, text passage, table, infobox,... but the structure is just linear, putting one item following to another.
    How can I structure the document with reoccuring tags that enable me to identify the exact position of an item in the document's structure? So that I can say for example "text passage X" is located in chapter 4, subchapter 1. This has to be done because the document is supposed to be updated later on. So maybe a chapter gets modified and has to be replaced, but this replacement is supposed to be displayed.
    I hope my problem becomes clear! That's my biggest issue for now. So for any help I'd be very thankful!

    Our print publications are created in InDesign CS5 for Mac then the text is exported to RTF files then sent to an outside company to be converted to our XML specifications for use by our website developers.  I would like to create a workflow in which our XML tags are included in the InDesign layouts and then export the XML from the layouts.
    Some more detail about what kind of formatting is necessary might be helpful.
    I know that IDML files contain the entire layout in XML format.  Is it a good idea to extract what we need from IDML, using the already-assigned tags?
    Well, if you want to export the whole document, it's the only reasonable approach.
    We use a workflow system such that each story is a seperate InCopy document, stored in ICML format (Basically a subset of IDML). Our web automation uses XSLT to convert each story into HTML for use on our web site; it also matches it up with external metadata so it knows what is a headline and what is not, etc.. It is not exactly hassle free, and every once in a while someone uses a new InDesign feature that breaks things (e.g., our XSLT has no support for paragraph numbering, so numbered paragraphs show up without their numbers).
    You could do the same thing with with IDML, you'd just have to pick out each story, but that's small potatoes compared to all the XSL work you're going to have to do.
    On the other hand, there may be better approaches if you're not going to export the whole document. For instance,  you could use scripting to export each story as an RTF file, and then you could convert the RTF files into HTML using other tools.

Maybe you are looking for

  • Setting up a small office network - advice needed

    We are to move our small office (3 people) from a shared office environment to our own office space. That has the huge advantage that we´ll finally be Mac-only, but the agreeable disadvantage that there is no longer a networking professional around.

  • Query related to inner join V/S all entries........

    Hi all, I have a dought ...related to join and all entries Which one will be the better as per performance prospective : 1>For all entries or 2> using inner join condition i am combining 2 tables ... but in my where clause is having 6-7 condition if

  • IPod screen won't work?

    so I opened up my ipod and reassembled it back, and then this happens. The iTouch does work, but the image of the ipod on the screen won't work? Help what do I do!!

  • How to handle incoming call by means j2me

    Hello Everyone, Let me kindly ask your support in such important for me question: How I can handle incoming calls by means j2me (cldc - 1.0; midp - 2.0). Thank you in advance.

  • How much faster are the new iMacs from my older Macpro?

    Anyone have any idea how much faster a new iMac would be than my older Macpro? Please see attached image. Thanks!