Article View: adobe.scripting.indesign
Article #83Re: [JS CS4] how to add text to a rectangle
From: Dave_Saunders
Date: Fri, 27 Mar 2009 22:02
Date: Fri, 27 Mar 2009 22:02
7 lines
777 bytes
777 bytes
Because JavaScript still thinks it's a rectangle and so the contents property doesn't work. I think this will work: myGraphicFrame.getElements()[0].contents = "this is text" Dave
Technical Details
Message-ID:
<59b86e58.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossingReferences:
<59b86e58.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,579a7bc3bb22152 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Dave_Saunders@adobeforums.com Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: [JS CS4] how to add text to a rectangle Message-ID: <59b86e58.0@webcrossing.la2eafNXanI> Date: Fri, 27 Mar 2009 15:02:21 -0700 References: <59b86e58.-1@webcrossing.la2eafNXanI> Lines: 8 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit