🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17314

Re: Text Flow from Bottom-to-Top

#17314
From: Dave Saunders
Date: Wed, 18 Jun 2003 11:34
31 lines
2122 bytes
George,

That was funny in the Feature Requests forum, but it's out of place here. This is where Diego should be looking for a solution to this.

Diego,

If memory serves, you're a Mac user, right? In which case, you need an AppleScript.

It would help, I think to narrow down your question to some specifics about the text you're talking about. The general case is much harder to solve than a specific case.

For example, are all your paragraphs already just single lines? Or do they run to multiple lines?

Do you have tables inside your text? (I'd guess not, but if you do it's a much harder problem.)

Same for inline graphics (or frames). Much easier to manage without any of them.

For instance, if each line of your text frame is already a separate paragraph, then something as simple as this does the job:

tell application "InDesign 2.0.2"
 set myFrame to parent text frame of selection
 repeat with n from ((count of paragraphs of myFrame) - 1) to 1 by -1
  if character -1 of myFrame is not return then
   set contents of insertion point -1 of myFrame to return
  end if
  move paragraph n of myFrame to insertion point -1 of myFrame
 end repeat
end tell

But this only works for single-line parargaphs and it assumes that the space before and space after of those paragraphs don't need adjusting.

Dave
Technical Details
Message-ID: <1de9946d.2@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de9946d.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,268a332265ed9003
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-06-18 04:37:38 PST
From: "Dave Saunders" <daves@pdsassoc.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Text Flow from Bottom-to-Top
Message-ID: <1de9946d.2@WebX.la2eafNXanI>
Date: Wed, 18 Jun 2003 04:34:03 -0700
References: <1de9946d.-1@WebX.la2eafNXanI>
Lines: 40
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit