🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18397

Need Help with Using Labels in Script

#18397
From: Stephen Field
Date: Fri, 21 Mar 2003 02:35
21 lines
1559 bytes
I am trying to create a script that will apply a corner effect to all text frames in my document that have a certain label given to them in the Script Label pallete, and I am having no luck.

this is what I have so far

Set myInDesign = CreateObject("InDesign.Application.2.0")
Set myDocument = myInDesign.ActiveDocument
For myCounter = 1 To myDocument.AllPageItems.Count
Set myPageItem = myDocument.AllPageItems.Item(myCounter)
Select Case TypeName(myPageItem)
Case "TextFrame"
Select Label TypeName(myPageItem)
Label "screentext"
Rem Set the frame's corner effect
Rem (use one of the constants defined above)
myPageItem.CornerEffect = idRoundedCorner
Rem set the corner radius
myPageItem.CornerRadius = 12
End Select
Next

Any help would greatly be appreciated. I guess I am trying to learn how to incorporate labels into my scripts.
Technical Details
Message-ID: <1de8641e.-1@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!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,498c886dd63b1cfe,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-03-20 18:38:27 PST
From: "Stephen Field" <stephenfield@mail.unomaha.edu>
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!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Need Help with Using Labels in Script
Message-ID: <1de8641e.-1@WebX.la2eafNXanI>
Date: Thu, 20 Mar 2003 18:35:55 -0800
Lines: 24
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit