🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18975

Re: How to remove a line(AS)

#18975
From: Dave Saunders
Date: Mon, 10 Feb 2003 14:03
9 lines
1529 bytes
I was thinking about this while shaving this morning and a couple of thoughts popped into my head:

1. Are you sure you want to delete a line of text and not a paragraph? A line is a very odd choice unless you happen to have one paragraph per line.

2. My "try" statement won't protect against two deletes in the same line, except in the odd situation where the two of them are both in the last line of the story, because only then would the second attempt to delete the same line fail. Rather, if you have two delete instructions in the same line then the script will delete the line after as well as the line you intended to delete -- that's the way that object references work.

So, if this is a real possibility, you need to add code to check for it.

Dave
Technical Details
Message-ID: <1de7c5a7.3@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de7c5a7.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,8419cb4235aa6d89
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-02-10 06:10:08 PST
From: "Dave Saunders" <daves@pdsassoc.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: How to remove a line(AS)
Message-ID: <1de7c5a7.3@WebX.la2eafNXanI>
Date: Mon, 10 Feb 2003 06:03:26 -0800
References: <1de7c5a7.-1@WebX.la2eafNXanI>
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit