Article View: adobe.scripting.indesign
Article #20802Re: Insert soft return (newby)
From: Shane Stanley
Date: Wed, 29 May 2002 02:03
Date: Wed, 29 May 2002 02:03
20 lines
1446 bytes
1446 bytes
in article ef8b754.8@WebX.aaQKaf7vad4, Jay Fraser wrote:
> I get the same "... variable myFountItems not defined."
There's a bug in the search command where if nothing is found, no result is
returned. The workaround is to use something like this:
tell application "InDesign 2.0.1"
tell document 1
set myfoundItems to search ...
try
myfoundItems
on error
set myfoundItems to {}
end try
end tell
end tell
--
Shane Stanley, sstanley@myriad-com.com.au
Technical Details
Message-ID:
<B91A7413.31775%sstanley@myriad-com.com.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!peer1-sjc1.usenetserver.com!usenetserver.com!news.tele.dk!small.news.tele.dk!194.176.220.129!newsfeed.icl.net!news.algonet.se!algonet!news000.worldonline.se!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<ef8b754.-1@WebX.aaQKaf7vad4> <ef8b754.8@WebX.aaQKaf7vad4>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,4c5b67e22acd13de X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2002-05-28 19:07:38 PST From: Shane Stanley <sstanley@myriad-com.com.au> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!supernews.com!peer1-sjc1.usenetserver.com!usenetserver.com!news.tele.dk!small.news.tele.dk!194.176.220.129!newsfeed.icl.net!news.algonet.se!algonet!news000.worldonline.se!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Insert soft return (newby) Message-ID: <B91A7413.31775%sstanley@myriad-com.com.au> Date: Tue, 28 May 2002 19:03:32 -0700 References: <ef8b754.-1@WebX.aaQKaf7vad4> <ef8b754.8@WebX.aaQKaf7vad4> Lines: 22 User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.3 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit