🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18134

Re: [VB] Placing Multiple Images into set templates

#18134
From: Iolaire McFadden
Date: Fri, 25 Apr 2003 13:57
17 lines
1743 bytes
This section
If InDPageItem.Label = InDFrameName Then
probably will not work, it would if it was enclosed in a loop to select each page item on at a time so it could then check to see if it has your desired name but otherwise you have not selected a page item (I think). Also that method would take a long time if you get it to work.

Here is how I select a text frame (uniquely named) anywhere in the document, then the last line shows how I create a table you want to instead create a link.
Dim myholdingart As InDesign.TextFrame
Set myholdingart = myDocument.TextFrames.Item("Table_Frame_1")
Set myTable1 = myholdingart.ParentStory.Tables.Add

also note the second line could instead read with a variable for the number:
Set myholdingart = myDocument.TextFrames.Item("Table_Frame_" & InDPlaceCount)


Using that code you should be able to change it to select your type of frame (sorry I don't know my frames it my be a textframe or some other type).

Does that help you at all?
iolaire
Technical Details
Message-ID: <1de8dd3e.2@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!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 07:08:02 PST
From: "Iolaire McFadden" <imcfadden@costar.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!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.2@WebX.la2eafNXanI>
Date: Fri, 25 Apr 2003 06:57:01 -0700
References: <1de8dd3e.-1@WebX.la2eafNXanI>
Lines: 26
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit