🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2597

Re: CS4 VBS Groups

#2597
From: Olav_Kvern
Date: Thu, 11 Dec 2008 19:06
18 lines
1046 bytes
Hi Samuli Seppala,

Instead of:



Set myText = myInDesign.Selection.Item(1).Texts.Item(1)

Use:

Set myTextFrame = myInDesign.Selection.Item(1).TextFrames.Item(1) 
Set myText = myTextFrame.Texts.Item(1)

The objects inside a group are page items--Text is not a page item, but TextFrame is. If you look at the Group object, you'll see that it can contain TextFrames, but not Texts.

Thanks,

Ole
Technical Details
Message-ID: <59b73ed2.0@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!webcrossing
References: <59b73ed2.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,2968eae084f98e3c
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Olav_Kvern@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: CS4 VBS Groups
Message-ID: <59b73ed2.0@webcrossing.la2eafNXanI>
Date: Thu, 11 Dec 2008 11:06:15 -0800
References: <59b73ed2.-1@webcrossing.la2eafNXanI>
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Original-Lines: 15