Article View: adobe.scripting.indesign
Article #16489[VB]Place a Frame on the current page
From: Eelko Heuvelmans
Date: Wed, 10 Sep 2003 14:12
Date: Wed, 10 Sep 2003 14:12
16 lines
1589 bytes
1589 bytes
Hi all, I'm building a script to lay out pages. (who isn't? :)) But i got confuesed. Since i'm quite new to scripting and indesign at all that isn't that strange :) but,.. As i get the command to add a frame (rectangle) to the document, the user should tell on what pagenumber it should be placed. So i can place it on that page. That works fine. But, if the user doesn't give me a pagenumber to add the rectangle on, i want to place it onto the current page. The page that's active. When a pagenumber is given i do this: myRectangle = myDocument.Pages.Item(nPageNr).Rectangles.Add But i can't find something like Pages.Current or something like it. Anyone a hint how to get to the current page, or am i thinking to difficult? :-) I code in VB.Net with ID2.0.2 on a PC (W2K) Thanx in Advance!
Technical Details
Message-ID:
<2ccd6297.-1@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!diablo.voicenet.com!in.100proofnews.com!in.100proofnews.com!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webxShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,309e8a3ae2f5388b,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-09-10 07:38:43 PST From: "Eelko Heuvelmans" <eelko.heuvelmans@planet.nl> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer1.atl.newshosting.com!diablo.voicenet.com!in.100proofnews.com!in.100proofnews.com!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: [VB]Place a Frame on the current page Message-ID: <2ccd6297.-1@webx.la2eafNXanI> Date: Wed, 10 Sep 2003 07:12:56 -0700 Lines: 22 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit