Article View: adobe.scripting.indesign
Article #19653Re: Set active page [AS]
From: Shane Stanley
Date: Thu, 28 Nov 2002 02:27
Date: Thu, 28 Nov 2002 02:27
31 lines
2000 bytes
2000 bytes
in article B9FAC8D4.43D19%sstanley@myriad-com.com.au, Shane Stanley wrote:
> in article 1de69b84.-1@WebX.la2eafNXanI, Steve Nichols wrote:
>
>> What I would like to do is add to the script changing the view to the chosen
>> page
>
> The nearest you can do is set the view to the spread, something like:
>
> set active spread of window 1 to parent of page mypage of document 1
Actually, you *can* set the view to a page (provided there's something on
it):
display dialog "Which page would you like the selected items to move to?"
default answer ""
set mypage to text returned of result as integer
tell application "InDesign 2.0.1"
set theItem to selection
move theItem to page mypage of document 1
set active spread of window 1 to parent of page mypage of document 1
select theItem
zoom window 1 given zoom out
zoom window 1 given zoom in
end tell
When you select a page item and zoom out then in, ID tries to centre the
item in the window.
--
Shane Stanley, sstanley@myriad-com.com.au
Technical Details
Message-ID:
<BA0BCA3C.45A2B%sstanley@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de69b84.-1@WebX.la2eafNXanI> <B9FAC8D4.43D19%sstanley@myriad-com.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,e54516b57f9a5df3 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-11-27 18:37:51 PST From: Shane Stanley <sstanley@myriad-com.com.au> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!oleane.net!oleane!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Set active page [AS] Message-ID: <BA0BCA3C.45A2B%sstanley@myriad-com.com.au> Date: Wed, 27 Nov 2002 18:27:25 -0800 References: <1de69b84.-1@WebX.la2eafNXanI> <B9FAC8D4.43D19%sstanley@myriad-com.com.au> Lines: 38 User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.6 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit