🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20017

Re: Page Size and Orientation NOT working

#20017
From: Bill Clements
Date: Tue, 12 Nov 2002 22:59
21 lines
1863 bytes
Hi Ole, 

Still trying to send you the file... 

Search for "myDocumentPreferences.NumberOfPages = myNumberOfPages" and enable this, instead of the line bellow "myDocument.Pages.Add = myNumberOfPages". 

Run the script twice with 11 images in a folder. First with with the default settings (4 rows x 4 columbs), then with 2 rows x 2 columbs. 
Everything will work, except the page that started out Landscape, will turn Portrait. This is obviously wrong. 

Now disable "myDocumentPreferences.NumberOfPages = myNumberOfPages" and enable the line you suggested "myDocument.Pages.Add = myNumberOfPages". 
With the default 4x4 (rowsxcolumbs) and 11 sample images, this script would run without error, and the single page will be landscape. Great! 
Change it 3x3, and everything is still OK. The document will have 2 pages (based on 11 images). Great! 

Change it to 2x2, and the whole thing falls over. Whoops! 
It should have created 3 pages, but there is only 2, and of course the error message. 

This is what I don't understand. 

Thanks, 

Bill
Technical Details
Message-ID: <1de67ce8.8@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!colt.net!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de67ce8.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,e817c558ea6d46ce
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-11-12 15:20:07 PST
From: "Bill Clements" <clementsbill@hotmail.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!colt.net!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Page Size and Orientation NOT working
Message-ID: <1de67ce8.8@WebX.la2eafNXanI>
Date: Tue, 12 Nov 2002 14:59:26 -0800
References: <1de67ce8.-1@WebX.la2eafNXanI>
Lines: 29
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit