Article View: adobe.scripting.indesign
Article #20635Re: AS: Creation of an index from a text file
From: Olivier Berquin
Date: Tue, 18 Jun 2002 07:00
Date: Tue, 18 Jun 2002 07:00
40 lines
1973 bytes
1973 bytes
Hi shane, >I tried them on a simple document, yes. Are you getting an error, or what? > Maybe you could send me a log, or tell me which line is causing the problem. Ok, If I search the word "hammer", your script stop on the second page ! On the first page, no text frame, and on the second one, the word "hammer" appear in 3 text frames. Here is the log: -- Script �index ind� started tell application "InDesign 2.0" �count every page of document 1 �-->�31 �search all page items of page 1 of document 1 for "hammer" �search all page items of page 2 of document 1 for "hammer" end tell Script �index ind� finished �-->�InDesign 2.0 a g�n�r� une erreur : all page items of page 2 of document 1 ne comprend pas le message search. My translation: �-->�InDesign 2.0 generated an error: all page items of page 2 of document 1 does not understand the message "search". -- Now, I remove the word hammer on page 2, but it appear on the page 11. Unfortunately, the script stop on the second page, with the same error. Shane, don't spend to more time with this stuff. I understand your way: just a big loop through the document. Thank ! Olivier.
Technical Details
Message-ID:
<ef91ff0.4@WebX.aaQKaf7vad4>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!news.tele.dk!small.news.tele.dk!213.73.101.75!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<ef91ff0.-1@WebX.aaQKaf7vad4>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f939a,dba5b3be0840d143 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-06-18 00:08:24 PST From: "Olivier Berquin" <ob@microscript.be> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!news.tele.dk!small.news.tele.dk!213.73.101.75!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: AS: Creation of an index from a text file Message-ID: <ef91ff0.4@WebX.aaQKaf7vad4> Date: Tue, 18 Jun 2002 00:00:25 -0700 References: <ef91ff0.-1@WebX.aaQKaf7vad4> Lines: 38 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit