Article View: adobe.scripting.indesign
Article #16938VB changing TextForm style
From: Ralph Stirling
Date: Tue, 22 Jul 2003 15:49
Date: Tue, 22 Jul 2003 15:49
31 lines
1823 bytes
1823 bytes
I am writing a script for creating a yearbook, and so am placing a series of photos and captions. Each caption has three lines. I am having trouble applying my desired font and pointsize to the caption TextFrames though. All my efforts at setting these affects only the first line. I thought it might be an issue of each line being treated as a separate paragraph, but the frame reports a paragraph count of 1. Paragraphs.Item(1) reports a line count of 1. Here is a snippet of my code: Set TF2 = myDocument.Spreads.Item(1).TextFrames.Add TF2.TextContents = line1 & Chr(13) & line2 & Chr(13) & line3 TF2.Paragraphs.Item(1).CharacterStyle = captionStyle ' Also tried below: 'TF2.Paragraphs.Item(1).PointSize = 8 'TF2.Paragraphs.Item(1).AppliedFont = textFont TF2.GeometricBounds = Array(Y, X + Xoff, Y + Yoff, X + PhotoWidth) Any suggestions on the solution to this little problem, and/or pointers to additional documentation beyond the "InDesign Scripting Guide" would be most appreciated. Thanks, -- Ralph
Technical Details
Message-ID:
<1dea04ab.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!peer2.news.opaltelecom.net!newsfeed.freenet.de!eusc.inter.net!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,f0528502556bc92c,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-07-22 09:07:48 PST From: "Ralph Stirling" <stirra@wwc.edu> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!peer2.news.opaltelecom.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: VB changing TextForm style Message-ID: <1dea04ab.-1@WebX.la2eafNXanI> Date: Tue, 22 Jul 2003 08:49:39 -0700 Lines: 30 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit