🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19539

Re: Adding tabs to beginning of paragraphs

#19539
From: Shane Stanley
Date: Wed, 04 Dec 2002 21:06
23 lines
1590 bytes
in article 1de6df1c.-1@WebX.la2eafNXanI, mattb wrote:

> set myText to item 1 of mynewFrame
> set myText to object reference of item 1 of mynewFrame
> set myParas to object reference of every paragraph of mynewFrame
> set n to count of myParas
> set myTab to tab
> repeat with x from 1 to n
> set contents of insertion point of paragraph x of myText to myTab
> end repeat

You need to specify *which* insertion point:

 set contents of insertion point 1 of paragraph x of myText to myTab

But you're still doing a lot of unnecessary work. You can replace all of the
code above with one line:

 set contents of insertion point 1 of every paragraph of parent story of
mynewFrame to myTab

-- 
Shane Stanley,  sstanley@myriad-com.com.au
Technical Details
Message-ID: <BA14B969.464EA%sstanley@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!nntp2.aus1.giganews.com!nntp.giganews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de6df1c.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,51e9177ea9be9f00
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-12-04 13:08:07 PST
From: Shane Stanley <sstanley@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!nntp2.aus1.giganews.com!nntp.giganews.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Adding tabs to beginning of paragraphs
Message-ID: <BA14B969.464EA%sstanley@myriad-com.com.au>
Date: Wed, 4 Dec 2002 13:06:02 -0800
References: <1de6df1c.-1@WebX.la2eafNXanI>
Lines: 26
User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.6
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit