🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #8483

[AS CS2] Bug report XML markup text in table

#8483
From: Jonathan_W_Brown
Date: Wed, 04 Oct 2006 19:17
117 lines
6276 bytes

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> Lin Xia <br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, October 04, 2006
11:39 AM<br>
<b><span style='font-weight:bold'>To:</span></b> Jonathan Brown<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [AS CS2] Bug report
XML markup text in table</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Jonathan,<o:p></o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>The crash in the markup method is a known issue.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>To achieve what the script is doing, the user can pass the paragraph as
the&nbsp;XML content when creating a new element. The script will look like
this:<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>set myStory to object reference of selection of document 1 <br>
<br>
repeat with i from 1 to count paragraphs of myStory <o:p></o:p></span></font></p>

</div>

<p class=MsoNormal style='margin-left:.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>set myParagraphStyle to name of applied paragraph
style of paragraph i of myStory <o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>tell XML item 1 of document 1 <o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:1.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>try <o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:2.0in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>set myXMLelement to make new XML element with
properties {markup tag:myParagraphStyle, XML content:paragraph i of myStory} <o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:1.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>on error <o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:2.0in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>set myXMLelement to make new XML element with
properties {markup tag:&quot;NoStyleName&quot;, XML content: paragraph i of
myStory} <o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:1.5in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>end try <o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:1.0in'><font size=3 face="Times New Roman"><span
style='font-size:12.0pt'>end tell <o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>end repeat&nbsp;<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Lin<o:p></o:p></span></font></p>

</div>
Technical Details
Message-ID: <38F8C23787B8E5498E374ADC7569A91BF65107@namail3.corp.adobe.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.taunusstein.net!news.mb-net.net!open-news-network.org!news.isoc.lu!webcrossing
References: <3bc1bc50.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,6f31ea9068fdbf3c
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Jonathan_W_Brown@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!news2.volia.net!news.ecp.fr!news.taunusstein.net!news.mb-net.net!open-news-network.org!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: [AS CS2] Bug report XML markup text in table
Message-ID: <38F8C23787B8E5498E374ADC7569A91BF65107@namail3.corp.adobe.com>
Date: Wed, 4 Oct 2006 12:17:28 -0700
References: <3bc1bc50.-1@webcrossing.la2eafNXanI>
Lines: 154
Received: from exprod6og50.obsmtp.com [64.18.1.181] by adobeforums.com; Wed, 4 Oct 2006 19:12:59 -0700
Received: from source ([192.150.11.134]) by exprod6ob50.postini.com ([64.18.5.12]) with SMTP; Wed, 04 Oct 2006 18:24:54 PDT
Received: from inner-relay-1.corp.adobe.com ([153.32.1.51]) by outbound-smtp-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id k94JFGnN029910 for <adobe.scripting.indesign@adobeforums.com>; Wed, 4 Oct 2006 12:15:16 -0700 (PDT)
Received: from fe1.corp.adobe.com (fe1.corp.adobe.com [10.8.192.70]) by inner-relay-1.corp.adobe.com (8.12.10/8.12.10) with ESMTP id k94JHN4d012957 for <adobe.scripting.indesign@adobeforums.com>; Wed, 4 Oct 2006 12:17:34 -0700 (PDT)
Received: from namail3.corp.adobe.com ([10.8.192.66]) by fe1.corp.adobe.com with Microsoft SMTPSVC(6.0.3790.1830);  Wed, 4 Oct 2006 12:17:28 -0700
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
Thread-Topic: [AS CS2]  Bug report XML markup text in table
Thread-Index: AcbeM4x4Ojg4mu3mStmdUJmdlIFe5gJpCgTgAALzhsAAAYQ3YA==
X-OriginalArrivalTime: 04 Oct 2006 19:17:28.0921 (UTC) FILETIME=[BBB49C90:01C6E7E9]
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit