🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18140

Re: [VB] Placing Multiple Images into set templates

#18140
From: roberto soto
Date: Fri, 25 Apr 2003 15:07
28 lines
1611 bytes
Optimizing ?!

Dim InD As InDesign.Application

Private Sub Command1_Click()

InDFilePattern = "Img"
    IndPath = "C:\Test\"
    InDExt = ".jpg"

Set InD = CreateObject("InDesign.Application.2.0")

If InD.Documents.Count <> 0 Then
        Set InDDocument = InD.ActiveDocument
        InDImageNumber = InputBox("How many images do you want placed into the composite?", _
                                  "Composite Image Count", "15")
        On Error Resume Next ' In case than more rectangles that images
        For i = 1 To InDDocument.Rectangles.Count
            Set InDRectangle = InDDocument.Rectangles.Item(i)

myNumber = Str(i)
            myImage = IndPath & InDFilePattern & Mid$(myNumber, 2, Len(myNumber)) & InDExt

InDRectangle.Place myImage
            If i > InDImageNumber Then Exit For
        Next
    End If
End Sub
Technical Details
Message-ID: <1de8dd3e.8@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de8dd3e.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,458bf860275b79ec
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-04-25 08:07:46 PST
From: "roberto soto" <roberto1soto@hotmail.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: [VB] Placing Multiple Images into set templates
Message-ID: <1de8dd3e.8@WebX.la2eafNXanI>
Date: Fri, 25 Apr 2003 08:07:19 -0700
References: <1de8dd3e.-1@WebX.la2eafNXanI>
Lines: 31
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit