Article View: adobe.scripting.indesign
Article #10005Re: Does TextFrame.search() work? How about Text.search()? [JS]
From: Dave_Saunders
Date: Sat, 08 Jul 2006 19:07
Date: Sat, 08 Jul 2006 19:07
7 lines
971 bytes
971 bytes
The error says it all. Search works on text. If there isn't any text, you get that error. It would be more convenient to just get an empty array as the result, but that's not the way it works. Interestingly, if you search the parentStory, even if it is empty, you do not get the error. Dave
Technical Details
Message-ID:
<3bc0d9d0.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news1.google.com!news.germany.com!news.datemas.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossingReferences:
<3bc0d9d0.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,2ce4250dcb3cb0c0 X-Google-Attributes: gidf939a,public X-Google-Language: ENGLISH,ASCII-7-bit From: Dave_Saunders@adobeforums.com Newsgroups: adobe.scripting.indesign Subject: Re: Does TextFrame.search() work? How about Text.search()? [JS] Message-ID: <3bc0d9d0.0@webcrossing.la2eafNXanI> Date: Sat, 8 Jul 2006 12:07:01 -0700 References: <3bc0d9d0.-1@webcrossing.la2eafNXanI> Lines: 10 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!news1.google.com!news.germany.com!news.datemas.de!news.albasani.net!news.ecp.fr!news.stben.net!webcrossing