Article View: adobe.scripting.indesign
Article #15485Losing Tags
From: Rachel_Lomasky
Date: Thu, 04 Dec 2003 20:46
Date: Thu, 04 Dec 2003 20:46
6 lines
916 bytes
916 bytes
I would like to go through a story and do a regular expression find and replace. I am using app.activeDocument.stories.item(0).contents as the string to be searched. The search and replace works well. However, I lose the tagging on the story, the formatting goes away and the XML tree only contains a root. What am I missing? Thanks, Rachel
Technical Details
Message-ID:
<2ccebf56.-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!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,ef8271a567f14d98,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-12-04 13:08:04 PST From: Rachel_Lomasky@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: Losing Tags Message-ID: <2ccebf56.-1@webx.la2eafNXanI> Date: Thu, 4 Dec 2003 12:46:45 -0800 Lines: 10 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit