Article View: adobe.scripting.indesign
Article #18078Simple AS "How come"
From: John Darnell
Date: Mon, 28 Apr 2003 15:44
Date: Mon, 28 Apr 2003 15:44
17 lines
1345 bytes
1345 bytes
Hello fellow scripters! I have this code: --CurrentFrame is a text frame set mycontents to contents of CurrentFrame display dialog mycontents as string When the display dialog command attempts to execute, I receive the following message: Can't make <<class txtf>> id 148 of <<class page>> of <<class sprd>> of document XXX of application InDesign into a string. According to the documentation on InDesign scripting the "contents" of a text frame is "a string or placeholder text." Why can't it be coerced into a string? What do I need to do to make this happen? If I cannot get the text out of a text frame by using "contents of <>" what should I use? TIA!
Technical Details
Message-ID:
<1de8e7d1.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.tpinternet.pl!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,b7270121fe8e3424 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-04-28 10:08:54 PST From: "John Darnell" <John.Darnell@Walsworth.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Simple AS "How come" Message-ID: <1de8e7d1.-1@WebX.la2eafNXanI> Date: Mon, 28 Apr 2003 08:44:59 -0700 Lines: 22 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit