🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20129

VBScript: Placing rtf - autoflow problem

#20129
From: �ystein �rneg�rd
Date: Tue, 05 Nov 2002 07:46
51 lines
2630 bytes
Hi! 

I try to place a rtf document into an InDesign document. The InDesign document is based on a template consisting of only one page and one textframe. 

When doing this manually I can hold down the shift-key when placing the rtf to make the placed rtf-text autoflow - it works fine: It adds any numbers of pages needed and these are filled with the text from the rtf document. 

I try to do this with VBScript: 



 
' --------- Script: 
const indd_no_error = 1699640946 

Set ids=CreateObject("InDesign.Application") 
ids.UserInteractionLevel=indd_no_error 

set doc = ids.open ("c:\inddscript\applikasjoner\utvalget\maler\utv.indt") 
set doc = ids.ActiveDocument 

set myTextFrame = doc.textframes.item(1) 
myTextFrame.Place "c:\inddscript\applikasjoner\utvalget\rtf\test.rtf" 
set ids = nothing 
' ---------- End script 




This opens the correct InDesign document, places the correct rtf-document - but the text does not autoflow. Only one page is generated. 

I have consulted the > 600 page pdf from Adobe - but lack of scripting experience makes me confused by the syntax provided. 

I have looked everywhere for a solution - but I can not manage to give the place-function the correct parameters. I have tried... 



myTextFrame.Place "c:\inddscript\applikasjoner\utvalget\rtf\test.rtf", , ,true



...and a number of other obviously wrong combinations to set the autoFlow parameter true - but it does not work. 

Can anyone show me a statement with sample parameters that will work? 

PS I: I have searched the net for script samples - but very little seems to be available but this forum. Do you have adresses for any good webpages with samples, tutorials, articles and/or discussions? 

PS II: I have also searched for a book on the topic. I find a number conserning applescript and InDesign - but I can not find any on the VBscript/InDesign-combo. Does such a book exist? 

Regards, 
�ystein �rneg�rd 
Norway
Technical Details
Message-ID: <1de67590.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-06!sn-xit-04!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f939a,dd7eb716ed6580e5,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-11-05 00:10:04 PST
From: "�ystein �rneg�rd" <o@ctech.no>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!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: VBScript: Placing rtf - autoflow problem
Message-ID: <1de67590.-1@WebX.la2eafNXanI>
Date: Mon, 4 Nov 2002 23:46:06 -0800
Lines: 58
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit