🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17853

Re: indent to here

#17853
From: mattb
Date: Fri, 09 May 2003 15:21
23 lines
1468 bytes
Thanks Jay. That example won't work though because there are other XML Elements too. Some of them are descriptions with paragraphs and I don't want to insert that tab after each period. I would like to do something like this:



if name of markup tag of myXMLElement is "Citation" then

set myRightHere to index of character 4 of paragraph 1 of text contents of myXMLElement 

set contents of insertion point myRightHere to indent here tab

end if



This obviously doesn't work. If I do something like this:



display dialog (character 5 of paragraph 1 of text contents of myXMLElement as string)



I get character 5 repeated 3 times in an array. Is it possible to insert that tab in the text contents of the XML Element, or is there another way to reference it?
Technical Details
Message-ID: <1de8f59c.6@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de8f59c.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,c783ca462beccebc
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-05-09 08:38:25 PST
From: mattb <tim@tim.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: indent to here
Message-ID: <1de8f59c.6@WebX.la2eafNXanI>
Date: Fri, 9 May 2003 08:21:58 -0700
References: <1de8f59c.-1@WebX.la2eafNXanI>
Lines: 22
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit