Article View: adobe.scripting.indesign
Article #20254Re: [AS] How can I view page X ?
From: Olav Kvern
Date: Thu, 01 Aug 2002 15:47
Date: Thu, 01 Aug 2002 15:47
29 lines
1415 bytes
1415 bytes
Olivier--
Try something like this:
tell application "InDesign 2.0.1"
tell document 1
make page at end
--get a reference to the last spread in the document
set mySpread to spread -1
tell last page
set TheMainFrame to make text frame with properties {geometric bounds:{"29 mm", "12 mm", "285 mm", "198 mm"}, label:"MainFrame"}
end tell
end tell
--set the active window to the last spread
set active spread of active window to mySpread
--select the text frame
select TheMainFrame
--zoom
tell active window
zoom given fit page
end tell
end tell
Does that work for you?
Thanks,
Ole
Technical Details
Message-ID:
<ef9f3a1.5@WebX.aaQKaf7vad4>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<ef9f3a1.-1@WebX.aaQKaf7vad4>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,32dad23da929126e X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-08-01 09:11:13 PST From: "Olav Kvern" <okvern@adobe.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!opentransit.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: [AS] How can I view page X ? Message-ID: <ef9f3a1.5@WebX.aaQKaf7vad4> Date: Thu, 1 Aug 2002 08:47:42 -0700 References: <ef9f3a1.-1@WebX.aaQKaf7vad4> Lines: 30 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit