🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1852

Re: [JS] [CS3] Create pageItem in the View Centre

#1852
From: Peter Kahrel
Date: Tue, 20 Jan 2009 16:23
6 lines
882 bytes
With a page item selected, setting the current layout window's zoom percentage to some value will centre the selection on the screen:

app.activeDocument.layoutWindows[0].activePage.rectangles.add().select();
app.activeDocument.layoutWindows[0].zoomPercentage = 400;

Peter
Technical Details
Message-ID: <59b78fc4.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
References: <C59B6C52.7A6F%mhrdina@hama.co.uk>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,a8b1048021777235
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Peter Kahrel" <kahrel@kahrel.plus.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: [JS] [CS3] Create pageItem in the View Centre
Message-ID: <59b78fc4.0@webcrossing.la2eafNXanI>
Date: Tue, 20 Jan 2009 08:23:12 -0800
References: <C59B6C52.7A6F%mhrdina@hama.co.uk>
Lines: 8
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit