Article View: adobe.scripting.indesign
Article #18403Re: Need Help with Using Labels in Script
From: Iolaire McFadden
Date: Fri, 21 Mar 2003 15:44
Date: Fri, 21 Mar 2003 15:44
21 lines
1497 bytes
1497 bytes
Sorry, I did not add then to your If Label = test code.
new code
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"
If Label = test then
Then myPageItem.CornerEffect = idRoundedCorner
Rem Set the frame's corner effect
Rem (use one of the constants defined above)
Rem set the corner radius
myPageItem.CornerRadius = 12
else
REM else is optional if you don't have something else to do
end if
End Select
Next
Technical Details
Message-ID:
<1de8641e.4@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de8641e.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,498c886dd63b1cfe X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-03-21 08:08:05 PST From: "Iolaire McFadden" <imcfadden@costar.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!38.144.126.75.MISMATCH!feed1.newsreader.com!newsreader.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Need Help with Using Labels in Script Message-ID: <1de8641e.4@WebX.la2eafNXanI> Date: Fri, 21 Mar 2003 07:44:29 -0800 References: <1de8641e.-1@WebX.la2eafNXanI> Lines: 22 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit