Article View: adobe.scripting.indesign
Article #16534How to use Label property
From: Brian W. McMahon
Date: Wed, 03 Sep 2003 05:43
Date: Wed, 03 Sep 2003 05:43
21 lines
1411 bytes
1411 bytes
Hi.
I am not sure of the most effective ways to make use of the Label property. It seems that the Label property cannot be used like the Name property to refer to a specific object.
So if you label a color as "purple" you get an error if your write:
Set myRectagle.FillColor = myColors.Item("purple")
where "purple" is a label and not a name.
If you label objects in a collection, do you just have to loop through the object to pick out the one with the label you gave it?
For counter = 1 To myRectangles.Count
If myRectangles.Item(counter).Label = "Rectangle1" Then DO SOMETHING
Next counter
Are there other more efficient ways to use labels?
Thanks,
Brian
Technical Details
Message-ID:
<2ccd388a.-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!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!newsfeed.tpinternet.pl!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,7ca9bb8151cbdab4,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-09-02 23:07:42 PST From: "Brian W. McMahon" <b.mcmahon@etc.unsw.edu.au> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: How to use Label property Message-ID: <2ccd388a.-1@webx.la2eafNXanI> Date: Tue, 2 Sep 2003 22:43:30 -0700 Lines: 24 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit