🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19552

adding a text frame inside a text frame

#19552
From: mattb
Date: Thu, 05 Dec 2002 22:16
15 lines
1466 bytes
If I already have a text frame

tell myDocument
set myStory to parent story of text frame 1
set myInsertionPoint to insertion point -1 of myStory
select myInsertionPoint
set mynewFrame to make text frame
end tell

this script will add a collapsed text frame inside the current text frame. If I set the geometric bounds on mynewFrame it places the text frame according to the geometric bounds and not in the text frame. Is there a way to expand the width and height of the text frame after its been placed?

My original working idea was to create the new text frame off the page and then cut and paste it into the main text frame, but I wasn't too fond of that approach. I'm sure there is a simple way to do this but I'm stumped.

Thanks,
Matt
Technical Details
Message-ID: <1de6e43b.-1@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.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,1b85a7ac7e50be86,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-12-05 14:37:42 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.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: adding a text frame inside a text frame
Message-ID: <1de6e43b.-1@WebX.la2eafNXanI>
Date: Thu, 5 Dec 2002 14:16:41 -0800
Lines: 22
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit