🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20250

Re: [AS] How can I view page X ?

#20250
From: Olivier Berquin
Date: Thu, 01 Aug 2002 07:44
31 lines
1551 bytes
Hi Olav, 

Sorry for my ignorance. 

Re: In general, you need to back out of the tell context to tell the InDesign application object to select the frame. 

I try this: 
 
tell application "InDesign 2.0.1" 
	set MyWindow to active window 
	tell document 1 
		make page at end 
		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 

	tell document 1 
		select TheMainFrame 
		tell MyWindow 
			zoom given fit page 
		end tell 
	end tell 
end tell 
 

I've an error: incorrect parameter (on the line: "select TheMainFrame") 

Thanks 

Olivier.
Technical Details
Message-ID: <ef9f3a1.4@WebX.aaQKaf7vad4>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!64.152.100.70.MISMATCH!ps01-sjc1!news.webusenet.com!cyclone.bc.net!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <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 01:15:47 PST
From: "Olivier Berquin" <ob@microscript.be>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!64.152.100.70.MISMATCH!ps01-sjc1!news.webusenet.com!cyclone.bc.net!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.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.4@WebX.aaQKaf7vad4>
Date: Thu, 1 Aug 2002 00:44:31 -0700
References: <ef9f3a1.-1@WebX.aaQKaf7vad4>
Lines: 33
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit