Article View: adobe.scripting.indesign
Article #18037Re: AS changing text attributes
From: Jay Fraser
Date: Tue, 06 May 2003 17:50
Date: Tue, 06 May 2003 17:50
17 lines
1406 bytes
1406 bytes
Martin -- The answer to part 2 of your question is that it's a known bug: doing a search & replace in Applescript, with the replace as nothing or a string w/ fewer characters, will crash InDy. Here is a solution: Dave Saunders "Dealing with failed search" 1/28/03 10:38am </cgi-bin/webx?14@@.1de79630/0> The answer to part 1 is ... I have no idea. But have you tried putting in a second set of parens? I.e. set myStartIndex to ((index of character -1 of myStartItem) + 1) My second comment is, "If it works, don't fix it..." [grin] If the command takes 2 lines, use 2 lines. Lines are cheap. Jay
Technical Details
Message-ID:
<1de8dffa.7@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!newsengine.sol.net!hammer.uoregon.edu!canoe.uoregon.edu!logbridge.uoregon.edu!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de8dffa.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,3f638a313e6d5906 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-05-06 11:08:05 PST From: "Jay Fraser" <jayfraser@yahoo.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!newsengine.sol.net!hammer.uoregon.edu!canoe.uoregon.edu!logbridge.uoregon.edu!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: AS changing text attributes Message-ID: <1de8dffa.7@WebX.la2eafNXanI> Date: Tue, 6 May 2003 10:50:37 -0700 References: <1de8dffa.-1@WebX.la2eafNXanI> Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit