Article View: adobe.scripting.indesign
Article #16564Re: Need help to make a template with RGB blending, auto page numbers...
From: Kelly Vaughn
Date: Mon, 25 Aug 2003 18:51
Date: Mon, 25 Aug 2003 18:51
22 lines
2071 bytes
2071 bytes
Cool. I got it to work. Thank you very much! I knew about the dictionary, but I wasn't quite sure how to interpret it. Now it makes sense to me.
Second question: how do I make a second text frame on the same page? I got one text frame, but when I try to make a second one, I get an Execution Error message: "InDesign 2.0.2 got an error: Cannot create an additional item. Operation not permitted on this collection." What's the trick to simply making a second text frame? Here is the code. It gets hung up on the second "make text frame."
set theRef to master spread "A-Master"
tell theRef
set theFrame to make text frame
tell theFrame
set geometric bounds to pageNumberBounds
set properties of text 1 to {applied font:"Arial", font style:"Bold",
point size:8, justification:left}
set text 1 to auto page number
--Makes an auto MMYY date in te lower left corner
set myDateBox to make text frame
tell myDateBox
set geometric bounds to dateBounds
set properties of text 1 to {applied font:"Arial", font style:"Regular",
point size:6, justification:left}
set text 1 to "08/03"
end tell
end tell
end tell
Technical Details
Message-ID:
<2ccd043d.5@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<2ccd043d.-1@webx.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,8fe70470934c4a0d X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-08-25 12:07:55 PST From: "Kelly Vaughn" <kvaughn@activmanuals.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx Newsgroups: adobe.scripting.indesign Subject: Re: Need help to make a template with RGB blending, auto page numbers... Message-ID: <2ccd043d.5@webx.la2eafNXanI> Date: Mon, 25 Aug 2003 11:51:25 -0700 References: <2ccd043d.-1@webx.la2eafNXanI> Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit