🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20312

Re: how do IAdd a New Page and make it Active?

#20312
From: Peter Boctor
Date: Thu, 18 Jul 2002 15:28
21 lines
1528 bytes
Tony, 

First I would ask if you really need to use paste. There are cases when it is needed, but mostly from scripting you can accomplish the same end result without resorting to copy/paste. 

Assuming you really do need this, here are two approaches: 

1. After you add the page, get its spread by asking for its parent. 

Next set the window's active spread property to that spread. 

You can also use the zoom method to set the window's zoom to fit spread. 

2. The solution above sets the active spread but not the active page. 

If you really want to change the active page, a creative workaround is to place  a temporary image on the new page. 

Then you can get the link of the image and tell the link to show which will bring the image to view. 

Finally, you can delete the image. 

-peter
Technical Details
Message-ID: <ef9b8b8.0@WebX.aaQKaf7vad4>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-06!sn-xit-04!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <ef9b8b8.-1@WebX.aaQKaf7vad4>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,52fabd0ceeb9f5ee
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-07-18 08:40:27 PST
From: "Peter Boctor" <peter.boctor@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-06!sn-xit-04!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: how do IAdd a New Page and make it Active?
Message-ID: <ef9b8b8.0@WebX.aaQKaf7vad4>
Date: Thu, 18 Jul 2002 08:28:38 -0700
References: <ef9b8b8.-1@WebX.aaQKaf7vad4>
Lines: 26
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit