🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2596

CS4 VBS Groups

#2596
From: Samuli_Seppala
Date: Thu, 11 Dec 2008 19:02
8 lines
948 bytes
I have selected a group, which first object's text color I would like to change as black. How do I refer to group's first object?

Following works with normal text objects, but not with groups.

Set myInDesign = CreateObject("InDesign.Application")
Set myText = myInDesign.Selection.Item(1).Texts.Item(1)
Set myDocument = myInDesign.Documents.Item(1)
myText.FillColor = myDocument.Colors.Item("Black")
Technical Details
Message-ID: <59b73ed2.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,2968eae084f98e3c,start
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Samuli_Seppala@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.glorb.com!news2!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: CS4 VBS Groups
Message-ID: <59b73ed2.-1@webcrossing.la2eafNXanI>
Date: Thu, 11 Dec 2008 11:02:05 -0800
Lines: 9
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit