🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15795

TextFrame with InsertionPoint as parent?

#15795
From: Aigars_Grins
Date: Mon, 17 Nov 2003 13:41
14 lines
2129 bytes
Hi,

I'm using InDesign 2.0.2 while working on an application that is meant to compare two documents with each other. The reason the documents are compared is beacuse the XML export/import functions sometimes messes up (at least in 2.0.2). So the idea is to compare things with an "original", i.e. before the import is done, and then to re-apply all formatting that seems to have gone missing/bad.

While traversing objects, I sometimes find some strange things:

a) A TextFrame with an InsertionPoint as parent. The full "path" is: application/story/insertion point/text frame/table/cell/character. The problem here is that I don't see a way to really identify a "path" object from one document with the corresponding one in the other document, i.e. how can i find the corresponding character in document 2 after I've found a character (with a "path" as above) in document 1?

b) Story count differs. The problem a) appears in those cases when the story count differs before and after XML export/import. To mark up the document contents I use the XML export/import maps to set up paragraph styles with tags, together with the document.AutoTag method. This sometimes yields a XML "path" such as: Root/Story/ParagraphStyleName1/Story/ParagraphStyleName2. When an import is done the result are such that the nested story dissappears and strange effects such as the one in a) become noticeable.

Has anyone else seen this behaviour, or something similar, and could give me a pointer in what's really going on?

TIA,
Aigars
Technical Details
Message-ID: <2cce6d93.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,2db33af8216ff03e,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-11-17 06:07:47 PST
From: Aigars_Grins@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: TextFrame with InsertionPoint as parent?
Message-ID: <2cce6d93.-1@webx.la2eafNXanI>
Date: Mon, 17 Nov 2003 05:41:21 -0800
Lines: 32
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit