🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18125

Re: Creating text on a new page

#18125
From: Olav Kvern
Date: Thu, 24 Apr 2003 20:16
20 lines
1858 bytes
John--

You're up against a "page ownership" issue--when you tell a page to create a new object, InDesign places that object at the 0, 0 (upper left) corner of the page. This is true *regardless* of your using "with properties" to set the geometric bounds. InDesign creates the object at a default size at 0,0, then moves/resizes it as you've specified.

This is fine as long as you're working with single-page spreads. When you're working with double-page spreads, and create a new object on the second page of the spread, InDesign will think that the new object belongs to page 1 of the spread if the left edge of the object *touches* page 1. This means that subsequent moving/sizing of the object using geometric bounds moves/sizes the object using the coordinates of page 1, not page 2.

The workaround? Immediately after you create the object, move it down and to the right on the page using a *relative* move (an absolute move will move put it back on the first page of the spread). So:



set myTextFrame to make text frame 
tell myTextFrame to move by {1,1} 
set properties of myTextFrame to... 




Thanks,

Ole
Technical Details
Message-ID: <1de8dc77.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de8dc77.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,5fb9b80ecb9e484c
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-04-24 13:37:53 PST
From: "Olav Kvern" <okvern@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Creating text on a new page
Message-ID: <1de8dc77.0@WebX.la2eafNXanI>
Date: Thu, 24 Apr 2003 13:16:31 -0700
References: <1de8dc77.-1@WebX.la2eafNXanI>
Lines: 28
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit