Article View: adobe.scripting.indesign
Article #10103Does TextFrame.search() work? How about Text.search()? [JS]
From: Stephen_Carlsen
Date: Sat, 08 Jul 2006 18:43
Date: Sat, 08 Jul 2006 18:43
11 lines
987 bytes
987 bytes
My document-level searches work fine, but the same syntax doesn't work for TextFrame or Text searches, though the documentation says that it should. I keep getting the error
"Object contains no text for find/change."
The line of code is:
textframe.search("P",false,false,"Q");
Am I doing something wrong, or do these routines just not work?
Thanks for any help!
Technical Details
Message-ID:
<3bc0d9d0.-1@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.germany.com!news.motzarella.org!news.ecp.fr!news.stben.net!webcrossingShow Full Headers
Complete Article Headers
X-Google-Thread: f939a,2ce4250dcb3cb0c0,start X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Stephen_Carlsen@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Does TextFrame.search() work? How about Text.search()? [JS] Message-ID: <3bc0d9d0.-1@webcrossing.la2eafNXanI> Date: Sat, 8 Jul 2006 11:43:50 -0700 Lines: 13 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news2.volia.net!news.germany.com!news.motzarella.org!news.ecp.fr!news.stben.net!webcrossing